In 1806, Potsdam was occupied by French troops, personally commanded by Napoleon Bonaparte.

An excerpt from the article 24 facts about Potsdam

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).