The fervent Catholicism of its members brought them into conflict in Bohemia, and then in Prague, where Protestant ideas were gaining popularity. These problems were not preeminent under Holy Roman Emperor Rudolf II, elected King of Bohemia in 1576, who chose Prague as his home. He lived in the Prague Castle, where his court welcomed not only astrologers and magicians but also scientists, musicians, and artists. Rudolf was an art lover as well, and Prague became the capital of European culture. This was a prosperous period for the city: famous people living there in that age include the astronomers Tycho Brahe and Johannes Kepler, the painter Arcimboldo, the alchemists Edward Kelley and John Dee, the poet Elizabeth Jane Weston, and others. In 1618, the famous second defenestration of Prague provoked the Thirty Years' War, a particularly harsh period for Prague and Bohemia. Ferdinand II of Habsburg was deposed, and his place as King of Bohemia taken by Frederick V, Elector Palatine; however his army was crushed in the Battle of White Mountain (1620) not far from the city. Following this in 1621 was an execution of 27 Czech Protestant leaders (involved in the uprising) in Old Town Square and the exiling of many others. Prague was forcibly converted back to Roman Catholicism followed by the rest of Czech lands. The city suffered subsequently during the war under an attack by Electorate of Saxony (1631) and during the Battle of Prague (1648). Prague began a steady decline which reduced the population from the 60,000 it had had in the years before the war to 20,000. In the second half of the 17th century, Prague's population began to grow again. Jews had been in Prague since the end of the 10th century and, by 1708, they accounted for about a quarter of Prague's population. In 1689, a great fire devastated Prague, but this spurred a renovation and a rebuilding of the city. In 1713–14, a major outbreak of plague hit Prague one last time, killing 12,000 to 13,000 people. In 1744, Frederick the Great of Prussia invaded Bohemia. He took Prague after a severe and prolonged siege in the course of which a large part of the town was destroyed. In 1757 the Prussian bombardment destroyed more than one quarter of the city and heavily damaged St. Vitus Cathedral. However a month later, Frederick the Great was defeated and forced to retreat