The period of prosperity ended during the Swedish invasion of Poland. The Swedish army captured the city without a fight in November 1655. At first the invaders behaved correctly, as King Charles X Gustav still sought alliances within the Polish-Lithuanian nobility; the situation changed, however, in early 1656, when anti-Swedish uprisings broke out in southern Lesser Poland and quickly spread across the country. Radom was looted and almost completely destroyed in August 1656. Its population shrank from some 2,000 before the war, to 395 in 1660, with only 37 houses still standing. Swedish soldiers burned the royal castle and the monastery. With the Polish population in decline, the number of Jewish settlers grew by the early 18th century. In 1682 the first Piarists arrived, and in 1737–1756, opened a college.