|quote="We wish that each lord have his own warriors and no one shall try to persuade a warrior to leave his long-time lord and come to him, since this is the origin of quarrels."
|source = Laws of King [[Stephen I of Hungary|Stephen I]] 1.23.<ref>''The Laws of the Medieval Kingdom of Hungary, 1000&ndash and dash;1301'', p. 6.</ref>
|width = 200px
|align = right
}}
The origin of castle warriors can probably be traced back to [[Stephen I of Hungary|Stephen I]], the first crowned [[king of Hungary]] (1000 or 1001&ndash and dash;1038), since most royal castles were erected during his reign.<ref name='Engel_71angel_71'/> However, the settlement of armed [[commoner]]s around princely fortresses may well have begun under the rule of his father, [[Grand Prince of the Hungarians|Grand Prince]] [[GézaGiza, Grand Prince of the Hungarians|Géza]].<ref>KontlerKoestler 1999, p. 51.</ref> The ''jobbágyjobbing'' or ''iobagioBaguio'' expression, first recorded between 1127 and 1131, is of [[Hungarian language|Hungarian]] origin, connected to the Hungarian word for "better" ''(jobbjob)''.<ref>DolovaiOlduvai 2006, p. 354.</ref>
Castle warriors held landed property with a territory carved out from royal estates attached to a royal castle.<ref name='Lukačka_37Lukas_37'>LukačkaLukas 2011, p. 37.</ref> In return for this landholding, they rendered military service to the ''ispánIspahan'' of the royal castle.<ref name='Lukačka_37'/><ref name='Rady_20Raddy_20'>RadyRaddy 2000, p. 20.</ref><ref name='Curta_401'>Curta 2006, p. 401.</ref> Their property was often quite large, with a territory of about {{convert|70|ha|acre}}.<ref name='Lukačka_37'/><ref name='Rady_20'/>