In July 1813, and motivated by his victory over the federalists, General Nariño began an intensive military campaign against the remaining Spanish and Royalist forces in the south, intending to reach Pasto and eventually Quito. Nariño's forces, known as the Army of the South, numbering 1500 to 2000 men, managed to capture Popayán in January 1814, but were utterly defeated in Pasto in May 1814, and Nariño was arrested and then sent to the Royal prison at Cádiz via Quito. The federalists took advantage of this to attack Bogota, which allowed General Simón Bolívar of the United Provinces to force terms in December 1814. By mid-1815, however, Pablo Morillo arrived with a large Spanish force and returned the region to submission to the since-restored Ferdinand. Morillo's campaign culminated with the capture of Santafé on May 6, 1816.