Since both the family castles of Altleiningen and Neuleiningen had also been burnt down, the two comital lines both settled in Grünstadt beginning in 1700, made it a common residence town and took turns ruling. The Altleiningers had the old Glandern monasterial estate near Saint Martin's Church expanded into a palatial residence and called it Schloß Unterhof, while the Neuleiningers built the stately Baroque Schloß Oberhof not far away. For about 100 years, Grünstadt remained the capital of the county of Leiningen-Westerburg.