Until the end of the 17th century, Rastatt held little influence, but after its destruction by the French in 1689, it was rebuilt on a larger scale by Louis William, margrave of Baden, the imperial general in the Habsburg-Ottoman War known popularly as "Türkenlouis".