Before the Thirty Years War, Pirmasens had 59 families and about 235 inhabitants resident, whereas in Lemberg were counted 54 families (about 215 people). When counting is assumed that at that time there was a family of four to five people. In 1622, Pirmasens and Lemberg were ravaged by Spaniards and Croatian horsemen of the Imperial troops. The imperial army set fire to the village. Even the church was destroyed in a fire, after the withdrawal of the troops, Pirmasenser began to rebuild it. It was again ravaged by imperial troops under Matthias Gallas. They also looted Lemberg Castle, which was burned in 1636. Then the headquarters of the Lutheran parish of Lemberg was moved to Pirmasens. But, it was heavily damaged in it. In 1657, only 9 families (about 40 people) were lived in it. However, the population increased by immigration Reformed Swiss, Catholic Tyrolean and families from Franconia and Württemberg slowly, so that in 1661 in Pirmasens 21 families (about 87 people) were counted. However, during Franco-Dutch War, Louis XIV sent troops to the Palatinate under his marshall Turenne for relieve fortress of Landau and reinforce imperial ones. In 1677 Pirmasens was occupied and burned. It was under French rule until 1679. In 1691, only 16 people were lived in village of Pirmasens. During the Nine Years' War, it was sacked by French troops under General de Ezéchiel Mélac, who devastated the Palatinate in 1689. At same time the Lemberg Castle was still habitable after the destruction of the Thirty Years' War, completely destroyed. Thus, administrative centre of Reichsamt Lemberg was moved to Pirmasens in 1697. So, Pirmasens elevated to town status.