It formed during the late Miocene, when a progressive shallowing of the subducting Nazca Plate caused volcanic activity to retreat 500 kilometers from the main Andes into the land behind the mountain chain.