<P> This article lists the Margraves and Electors of Brandenburg during the period of time that Brandenburg was a constituent state of the Holy Roman Empire . </P> <P> The Mark, or March, of Brandenburg was one of the primary constituent states of the Holy Roman Empire . It was created in 1157 as the Margraviate of Brandenburg by Albert the Bear, Margrave of the Northern March . In 1356, by the terms of the Golden Bull of Charles IV, the Margrave of Brandenburg was given the permanent right to participate in the election of the Holy Roman Emperor with the title of Elector (German: Kurfürst). </P> <P> The early rulers came from several different dynasties, but from 1415 Brandenburg and its successor states were ruled by the House of Hohenzollern for over 500 years . From 1618 onward, Brandenburg was ruled in personal union with the Duchy of Prussia . The Hohenzollerns raised Prussia to a kingdom as the Kingdom of Prussia in 1701, and from then on Brandenburg was de facto treated as part of the kingdom even though it was legally still part of the Holy Roman Empire . The titles of Margrave of Brandenburg and Elector of Brandenburg were abolished along with the Holy Roman Empire in 1806, and Brandenburg was formally integrated into Prussia . Despite this, the Prussian kings still included the title "Margrave of Brandenburg" in their royal style . From 1871 to 1918 the Hohenzollerns were also German Emperors . </P> <Table> <Tr> <Th_colspan="6"> Ascanian Dynasty </Th> </Tr> <Tr> <Th_colspan="2"> Name </Th> <Th_colspan="2"> Reign </Th> <Th_colspan="2"> Comments </Th> </Tr> <Tr> <Td_colspan="2"> Albert I </Td> <Td_colspan="2"> 1157--1170 </Td> <Td_colspan="2"> Ruler of the Nordmark from 1134 . Called "Albert the Bear". </Td> </Tr> <Tr> <Td_colspan="2"> Otto I </Td> <Td_colspan="2"> 1170--1184 </Td> <Td_colspan="2"> Son of Albert I. Ruled together with his father from 1144 . </Td> </Tr> <Tr> <Td_colspan="2"> Otto II </Td> <Td_colspan="2"> 1184--1205 </Td> <Td_colspan="2"> Son of preceding . </Td> </Tr> <Tr> <Td_colspan="2"> Albert II </Td> <Td_colspan="2"> 1205--1220 </Td> <Td_colspan="2"> Brother . </Td> </Tr> <Tr> <Td_colspan="2"> <Ul> <Li> John I </Li> <Li> Otto III </Li> </Ul> </Td> <Td_colspan="2"> <Ul> <Li> 1220--1266 </Li> <Li> 1220 - 1267 </Li> </Ul> </Td> <Td_colspan="2"> Co-rulers, sons of Albert II . </Td> </Tr> <Tr> <Td_colspan="6"> From 1266 to 1319, Brandenburg was held by the two lines of Brandenburg - Stendal and Brandenburg - Salzwedel, all of whom jointly shared the title of Margrave . </Td> </Tr> <Tr> <Th_colspan="3"> Brandenburg - Stendal </Th> <Th_colspan="3"> Brandenburg - Salzwedel </Th> </Tr> <Tr> <Td_colspan="3"> Co-rulers, sons of John I: <Ul> <Li> John II, 1266--1282 </Li> <Li> Conrad, 1266--1304 </Li> <Li> Otto IV, 1266--1308 </Li> <Li> Henry I, 1266--1318 </Li> </Ul> </Td> <Td_colspan="3"> Co-rulers, sons of Otto III: <Ul> <Li> John III, 1267--1268 </Li> <Li> Otto V, 1267--1298 </Li> <Li> Otto VI, 1267--1291 </Li> <Li> Albert III, 1267--1300 </Li> </Ul> </Td> </Tr> <Tr> <Td_colspan="3"> Co-rulers: <Ul> <Li> Waldemar, 1308--1319, son of Conrad </Li> <Li> Henry II, 1319--1320, son of Henry I </Li> </Ul> </Td> <Td_colspan="3"> Co-rulers: <Ul> <Li> Herman, 1298--1308 (alone from 1300) </Li> <Li> John V, 1308--1317 </Li> </Ul> </Td> </Tr> <Tr> <Td_colspan="6"> After the extinction of the Ascanian dynasty in 1320, Brandenburg came under the control of the Emperor Louis IV of the House of Wittelsbach, who granted Brandenburg to his eldest son, Louis V of Bavaria . </Td> </Tr> <Tr> <Th_colspan="6"> Wittelsbach Dynasty </Th> </Tr> <Tr> <Th_colspan="2"> Name </Th> <Th_colspan="2"> Reign </Th> <Th_colspan="2"> Comments </Th> </Tr> <Tr> <Td_colspan="2"> Louis I "the Brandenburger" </Td> <Td_colspan="2"> 1323--51 </Td> <Td_colspan="2"> Cousin of Henry II, Son of Emperor Louis IV . </Td> </Tr> <Tr> <Td_colspan="2"> Louis II "the Roman". </Td> <Td_colspan="2"> 1351--56 </Td> <Td_colspan="2"> Half - brother of preceding; named Elector in 1356 . </Td> </Tr> </Table>

How and when did the dukes of brandenburg become kings of prussia
find me the text answering this question