 In the 15th and 16th centuries, northern and central areas of the forest were settled by peasants from overpopulated province of Mazovia.In the 17th century, during the Swedish invasion of Poland, local residents again escaped to the forest from Swedish, Cossack, Tatar and Transilvanian invaders.After the Partitions of Poland, the forest became part of Austrian Galicia.