The Magdalena campaign was a military operation from late 1812 to early 1813 led by the independentists Simón Bolívar and Pierre Labatut against royalists and the crown of Spain in New Granada (present-day Colombia). The campaign resulted in the revolutionary United Provinces of New Grenada taking control of the Magdalena River, which connects the port city of Cartagena with the interior of Colombia.