In 1695, Sophia Charlotte of Hanover received Lietzow from her husband, Elector Frederick III of Brandenburg, in exchange for her estates in Caputh and Langerwisch near Potsdam. Frederick had a summer residence built there for Sophie Charlotte by the architect Johann Arnold Nering between 1695 and 1699. After he had crowned himself Frederick I, King in Prussia, the "Lützenburg" castle was extended into a stately building with a cour d'honneur. The Swedish master builder Johann Friedrich Eosander supervised this work. Sophie Charlotte died in February 1705; shortly afterwards the settlement facing the palace was called "Charlottenburg" - the palace itself became "Schloss Charlottenburg" - and chartered as a town on April 5, 1705. The king served as the town's mayor until the historic village of Lietzow was incorporated into Charlottenburg in 1720.