For the first time in centuries, Duke Eberhard Ludwig moved the seat of the Duchy out of the declining city of Stuttgart in 1718 to Ludwigsburg, founded in 1704, while the namesake Baroque palace, known as the "Versailles of Swabia", was still under construction. When Eberhard Ludwig died, his nephew Charles Alexander, ascended to the throne. Charles Alexander himself died in 1737, meaning his son Charles Eugene became the premature Duke (and later King) at the age of nine. When he came of age and returned from his tutoring at the court of Frederick the Great, King of Prussia, Charles desired to move the capital back to Stuttgart. He commissioned the construction of the New Castle in 1746, Castle Solitude in 1763, Castle Hohenheim in 1785, and the Karlsschule in 1770. The rule of Charles Eugene also saw the tutoring and origins of Friedrich Schiller in Stuttgart, who studied medicine and completed The Robbers here. Stuttgart, at the end of the 18th century, remained a very provincial town of 20,000 residents, narrow alleys, and agriculture and livestock. Despite being the capital and seat of the Duchy, the general staff of the Army of Württemberg was not present in the city. In 1794, Duke Charles dissolved the Karlsschule to prevent the spreading of revolutionary ideas.