What causes caldera to form?

Magma often empties from a chamber beneath a volcano. When the land around the crater collapses, a caldera is formed.