At the end of the Middle Ages, the Slovene Lands suffered a serious economic and demographic setback because of the Turkish raids. In 1515, a peasant revolt spread across nearly the whole Slovene territory. In 1572 and 1573 the Croatian-Slovenian peasant revolt wrought havoc throughout the wider region. Such uprisings, which often met with bloody defeats, continued throughout the 17th century.