For 10 points, give this name of the Habsburg ruler who controlled Spain while Holy Roman Emperor.
A king of this name abdicated in favor of his son after a palace uprising partly caused by an unpopular prime minister who was thought to have an affair with Queen Maria Louisa. A Duke of Parma with this name built the Palace of Caserta as ruler of Naples and Sicily, which he took from Austria during the War of the Polish Succession. As ruler of a different kingdom, that man was the final European king to expel the Jesuits, doing so in 1767. The death of an extremely disabled king with this name known as (*) "the Bewitched" caused the War of the Spanish Succession. Another ruler of this name faced the Revolt of the Comuneros, won the Battle of Mühlberg against the Schmalkaldic League, and abdicated in favor of his brother Ferdinand and his son Philip. For 10 points, give this name of the Habsburg ruler who controlled Spain while Holy Roman Emperor.
A king of this name abdicated in favor of his son after a palace uprising partly caused by an unpopular prime minister who was thought to have an affair with Queen Maria Louisa.
Charles [or Carlos]