In 1820, Mexico, Peru, Ecuador, and Central America still remained under Spanish control. Although Mexico had been in revolt in 1811 under Miguel Hidalgo y Costilla, resistance to Spanish rule had largely been confined to small guerrilla bands in the countryside. King Ferdinand was still dissatisfied with the loss of so much of the Empire and resolved to retake it. A large expedition was assembled in Cadiz with the aim of reconquest. However, Ferdinand's plans would be disrupted by Liberal Revolution, and Ferdinand was eventually forced to give up all of the New World colonies, except for Cuba and Puerto Rico.