Ferdinand II (9 July 1578 – 15 February 1637) was Holy Roman Emperor, King of Bohemia, Hungary, and Croatia from 1619 until his death in 1637. He was the son of Archduke Charles II of Inner Austria and Maria of Bavaria, who were devout Catholics. In 1590, when Ferdinand was 11 years old, they sent him to study at the Jesuits' college in Ingolstadt because they wanted to isolate him from the Lutheran nobles. A few months later, his father died, and he inherited Inner Austria–Styria, Carinthia, Carniola and smaller provinces. His cousin, Rudolf II, Holy Roman Emperor, who was the head of the Habsburg family, appointed regents to administer these lands.
Ferdinand was installed as the actual ruler of the Inner Austrian provinces in 1596 and 1597. Rudolf II also charged him with the command of the defense of Croatia, Slavonia, and southeastern Hungary against the Ottoman Empire. Ferdinand regarded the regulation of religious issues as a royal prerogative and introduced strict Counter-Reformation measures from 1598. First, he ordered the expulsion of all Protestant pastors and teachers; next, he established special commissions to restore the Catholic parishes. The Ottomans captured Nagykanizsa in Hungary in 1600, which enabled them to invade Styria. A year later, Ferdinand tried to recapture the fortress, but the action ended in November 1601 with a defeat, due to unprofessional command of his troops. During the first stage of the family feud known as the Brothers' Quarrel, Ferdinand initially supported Rudolph II's brother, Matthias, who wanted to convince the melancholic emperor to abdicate, but Matthias' concessions to the Protestants in Hungary, Austria, and Bohemia outraged Ferdinand. He planned an alliance to strengthen the position of the Catholic Church in the Holy Roman Empire, but the Catholic princes established the Catholic League without his participation in 1610.