Following the Thirty Years' War, Saxony's rulers and population were Lutheran. However, in the 18th century Frederick Augustus I converted to Roman Catholicism to be crowned King of Poland as Augustus II. The Polish-Saxon union and dual state continued until the death of Augustus III in 1763.