After his death civil war and unrest broke out shortly afterward as northern nobles decided Ladislaus I for the Croatian King. In 1093, southern nobles elected a new ruler, King Petar Svačić ( 1093–1097), who managed to unify the Kingdom around his capital of Knin. His army resisted repelling Hungarian assaults, and restored Croatian rule up to the river Sava. He reassembled his forces in Croatia and advanced on Gvozd Mountain, where he met the main Hungarian army led by King Coloman I of Hungary. In 1097, in the Battle of Gvozd Mountain, the last native king Peter was killed and the Croats were decisively defeated (because of this, the mountain was this time renamed to Petrova Gora, "Peter's Mountain"). In 1102, Coloman returned to the Kingdom of Croatia in force, and negotiated with the Croatian feudal lords resulting in joining of Hungarian and Croatian crowns (with the crown of Dalmatia held separate from that of Croatia).