In Spain, the war had ended and the Spanish monarchy was restored on 11 December 1813. King Ferdinand VII of Spain declared the uprisings in the colonies illegal and sent a large army to quell the rebellions and reconquer the lost colonies, for which he appointed General Pablo Morillo. Morillo led a successful military campaign that culminated in the capture of Santafé on 6 May 1816.