Stefan Dragutin was initially the king of Serbia from 1276 to 1282. In 1282 he broke his leg while hunting and became ill; he passed the throne to his younger brother Stefan Milutin at the council at Deževo in 1282, while keeping for himself some northern parts of the country (Rudnik and parts of Župa of Podrinje). Since his son Vladislav married a relative of the Hungarian king, Dragutin in 1284 gained from Ladislaus IV the Banates of Só (Soli), Ózora (Usora) and Macsó (Mačva) with Belgrade, which he initially ruled as a Hungarian vassal, until the collapse of the central power in the Kingdom of Hungary. The first capital of his state was Debrc (between Belgrade and Šabac), and later he moved his residence to Belgrade. Dragutin was the first Serb ruler who ruled from Belgrade as the capital.