The city is the capital of the district of Gotha .
Was also a residence of the Ernestine Wettins from 1640 until the end of monarchy in Germany in 1918 .
The city is the capital of the district of Gotha and was also a residence of the Ernestine Wettins from 1640 until the end of monarchy in Germany in 1918 .