 The medieval Croatian kingdom reached its peak in the 11th century during the reigns of Petar Krešimir IV (1058–1074) and Dmitar Zvonimir (1075–1089).When Stjepan II died in 1091 ending the Trpimirović dynasty, Ladislaus I of Hungary claimed the Croatian crown.Opposition to the claim led to a war and personal union of Croatia and Hungary in 1102, ruled by Coloman.