The Caste War of Yucatán was a conflict that lasted from 1847 to 1901. It began with the revolt of native Maya people led by Maya chiefs Jacinto Pat and Cecilio Chi, against the population of European descent called "Yucatecos", who had political and economic control. A lengthy war ensued between the Yucateco forces in the north-west of the Yucatán and the independent Maya in the south-east. It officially ended with the occupation of the Maya capital of Chan Santa Cruz by the Mexican army in 1901, although skirmishes with villages and small settlements that refused to acknowledge Mexican control continued for over another decade. Adam Jones wrote: "This ferocious race war featured genocidal atrocities on both sides, with up to 200,000 killed." Because of the conflict, on November 24, 1902, Yucatán had a second territorial division when Porfirio Díaz decreed the creation of the Federal Territory of Quintana Roo, with capital in the port of Payo Obispo . In little more than half a century, Yucatán lost more than two thirds of its original territory.
Question: What happened first, the occupation of the Maya capital, or the creation of a capital in Payo Obispo?
Answer: occupation of the Maya capital