Within the palace are two museums operated by the Landesmuseum Württemberg dedicated to fashion and porcelain respectively. History "Ludwigsburg," meaning "Louis's castle," was named after its builder, Eberhard Louis, Duke of Württemberg, in 1705. On its site stood a hunting estate and lodge owned by the Dukes of Württemberg. This was destroyed by invading French troops in 1692, during the Nine Years' War, and replaced by another lodge built from 1697 to 1701. The beginning in 1701 of another war, the War of the Spanish Succession, against France and Bavaria, interrupted construction of this lodge, though Württemberg deferred entering the war until late 1702. Württemberg was subsequently invaded by France and Bavaria, but in 1704, the Bavarian Elector was defeated at the Battle of Blenheim and exiled, and Bavaria was occupied. Eberhard Louis, a participant of Blenheim and the subsequent occupation, spent the winter of 1705–06 at the Elector's residence, Nymphenburg Palace. Eberhard Louis used these developments to press claims to Bavarian lands, but illegally occupied the claimed lands. He was further undone by another French invasion of Württemberg in 1707 that resulted in the destruction of his capital and the flight of his family to Switzerland. Eberhard Louis's designs were at last defeated by the Treaty of Utrecht in 1713, which restored the territory and title of the Bavarian Elector. Unable to compete with Bavaria militarily or politically, and desiring to sideline the influence of the Estates of Württemberg, Eberhard Louis decided instead to compete culturally and build a new palace and town inspired by Versailles, which would be the center of his domestic society and diplomacy. Located from Stuttgart, Eberhard Louis could set up a court with his mistress, Wilhelmine von Grävenitz, and demonstrate his absolutist status as a monarch. Construction of Ludwigsburg Palace had officially begun in May 1704 with the laying of the Alter Hauptbau's cornerstone by Eberhard Louis. The year before, he sent to study architecture abroad, and himself studied architecture while staying at Nymphenburg. Upon Jenisch's return the next year, Eberhard Louis appointed director of construction. Jenisch, however, only managed to finish the Alter Hauptbau's (Old main building) first floor and some of the southern garden before falling out of the duke's favor in 1707. Jenisch was replaced in 1707 with Johann Friedrich Nette, an engineer. By 1709, it had become apparent that the massive undertaking of the palace's construction eventually necessitated the building