In 1815, it became the capital of the Brandenburg province and remained so until 1918. The exception is the period 1827-1843 when the capital of the province was Berlin (it became so again after 1918). The province consisted of two governorates named after their capitals: Potsdam and Frankfurt (Oder).