The Margrave of Brandenburg also held the ceremonial title of "Arch-Chamberlain of the Empire" (). When Louis the Roman died in 1365, Otto took over the rule of Brandenburg, although he quickly neglected the march. He sold Lower Lusatia, which he had already pledged to the Wettin dynasty, to Emperor Charles IV in 1367. A year later he lost the town Deutsch Krone (Wałcz) to Polish King Casimir the Great. After the middle of the 14th century, Emperor Charles IV attempted to secure Brandenburg for the House of Luxembourg. Control over the electoral vote of Brandenburg would help assure the Luxembourgs of election to the imperial throne, as they already held the vote of Bohemia. Charles succeeded in purchasing Brandenburg from Margrave Otto for 500,000 guilders in 1373 and, at a in Guben, he attached (but not incorporated) Brandenburg to the Crown of Bohemia. The "Landbuch" ("land book", i.e. estate register) of Charles IV, a source for the history of medieval settlement in Brandenburg, originated during this time. Charles chose the castle of to be the electoral residence. The power of the Luxembourgs in Brandenburg declined during the reign of Charles's nephew Jobst of Moravia. The was pawned to the Teutonic Knights, who neglected the border region. Under the Wittelsbach and Luxembourg margraves, Brandenburg fell increasingly under the control of the local nobility as central authority declined. In return for supporting Sigismund as Holy Roman Emperor at Frankfurt in 1410, Frederick VI of Nuremberg, a burgrave of the House of Hohenzollern, was granted hereditary control over Brandenburg in 1411. Rebellious landed nobility such as the Quitzow family opposed his appointment, but Frederick overpowered these knights with artillery. Some nobles had their property confiscated, and the Brandenburg estates gave allegiance at on 20 March 1414. Frederick was officially recognized as Margrave and Prince-elector Frederick I of Brandenburg at the Council of Constance in 1415. Frederick's formal investiture with the , or electoral march, and his appointment as Archchamberlain of the Holy Roman Empire occurred on 18 April 1417, also during the Council of Constance. Frederick made Berlin his residence, although he retired to his Franconian possessions in 1425. He granted governance of Brandenburg to his eldest son John the Alchemist, while retaining the electoral dignity for himself.