Charles VII (6 August 1697 – 20 January 1745) was elector of Bavaria from 26 February 1726 and Holy Roman Emperor from 24 January 1742 to his death. He was also King of Bohemia (as Charles Albert) from 1741 to 1743. Charles was a member of the House of Wittelsbach, and his reign as Holy Roman Emperor thus marked the end of three centuries of uninterrupted Habsburg imperial rule, although he was related to the Habsburgs by both blood and marriage.
Charles was the eldest son of Elector Maximilian II Emanuel of Bavaria and the Polish princess Theresa Kunegunda Sobieska. He became elector following the death of his father in 1726. In 1722, Charles married Archduchess Maria Amalia of Austria, daughter of Holy Roman Emperor Joseph I and niece of Emperor Charles VI.