Frankfurt, officially Frankfurt am Main - lit. 'Frankfurt on the Main'), is a metropolis and the largest city in the German state of Hesse and the fifth-largest city in Germany. Frankfurt was a city state, the Free City of Frankfurt, for nearly five centuries, and was one of the most important cities of the Holy Roman Empire; it lost its sovereignty in 1866.