After the fall of the Kingdom of Bosnia into Ottoman hands in 1463, the southern and central parts of the Kingdom of Croatia remained unprotected, the defense of which was left to Croatian gentry who kept smaller troops in the fortified border areas at their own expense. The Ottomans meanwhile reached the river Neretva and, having conquered Herzegovina (Rama) in 1482, they encroached upon Croatia, skillfully avoiding the fortified border towns. A decisive Ottoman victory at the Battle of Krbava Field shook all of Croatia. However, it did not dissuade the Croats from making persistent attempts at defending themselves against the attacks of the superior Ottoman forces. After almost two hundred years of Croatian resistance against the Ottoman Empire, victory in the Battle of Sisak marked the end of Ottoman rule and the Hundred Years' Croatian–Ottoman War. The Viceroy's army, chasing the fleeing remnants at Petrinja in 1595, sealed the victory.