Munich was founded (1158) by Henry the Lion, duke of Saxony and of Bavaria near a settlement (Munichen) that was established in Carolingian times. In 1255 it was chosen as the residence of the Wittelsbach family, the dukes of Bavaria and later became (1506) the capital of the dukedom.