Beginning in 1720, Mannheim was the capital of the Electorate of Pfalz (German: Kurpfalz).
A map of Mannheim from 1758. Source: Joseph Anton Baertels via Wikipedia Commons.