Local sanjakbeys then turned north and started attacking forts in Slavonia. Ali-beg, Sanjakbey of the Sanjak of Pakrac, was killed in the Battle of Ivanić in 1586. Following an Ottoman defeat near Nagykanizsa in 1587, a relatively lengthy period of peace began on the border.