In Spain, anti-French forces had liberated the country, and the restored Ferdinand VII sent a large expeditionary force to Venezuela and New Granada under Pablo Morillo, who had distinguished himself during Spain's War of Independence.