Denmark is a three-part autonomous community consisting of Denmark itself and two territories. It has been a constitutional monarchy since 1849 and a parliamentary monarchy since 1901, making its monarchy one of the oldest in the world. The Danish flag originated from a legend about falling from heaven during a battle in Estonia. Copenhagen has been the capital of Denmark since the early 15th century and contains landmarks like the Little Mermaid statue and Amalienborg Palace, the residence of the Danish royal family.