Dresden has a long history as the capital and royal residence of the Elector and King of Saxony, and the Church of the Virgin Mary of Dresden (Dresdner Frauenkirche) is a Lutheran church. Early church buildings were Catholic until they became Protestant during the Reformation.