From 1518 to 1848 Jastrebarsko is heavily influenced by the Croato-Hungarian noble family Erdödy. The bans Petar II and Toma II Erdödy were known for their victories against the spreading Ottoman Empire. Toma, son of Petar, won the 1593 Battle of Sisak, a major and decisive battle in the Ottomans' centuries-long occupation of Balkans. Later, in 1809 during the expansion of Napoleon's First French Empire, Jastrebarsko was for a short time incorporated in the Illyrian Provinces. This lasted until Summer 1813, when the French retreated from Croatia.