Answer
Wenceslaus I, the grandfather of Ottokar II, served as the King of Bohemia from 1230 until his death in 1253. Recognized as an able and effective ruler, Wenceslaus I strengthened royal power and centralized the Bohemian state. He enacted the "Codex Juris Bohemici," the first systematic compilation of laws in Bohemia, and gained significant territories, including the Egerland and the Pleissnerland, expanding the Bohemian kingdom.