The city stretches out on an alluvial plain dating to the Quaternary era. The mountainous regions nearby are older, dating from the Mesozoic (Triassic) or Paleozoic. A number of earthquakes have devastated Ljubljana, including in 1511 and 1895.