After the Spanish colonies became independent, the inhabitants of San Andrés, Providence and St. Catherine voluntarily adhered to the Republic of Gran Colombia in 1822, who placed them under the administration of the Magdalena Department.