In 1584 the Ottomans suffered a heavy defeat in the Battle of Slunj against the forces of Ban Erdődy. This defeat calmed the situation on the border as Ottoman commanders put a halt on their raids. Erdődy used that time to strengthen the border fortifications and called a session of the Croatian Parliament on 11 March 1585.