Ecuador is a representative democratic republic in South America. The country also includes the Galápagos Islands in the Pacific, about 1,000 kilometres (620 mi) west of the mainland. Ecuador is a presidential republic and became independent in 1830, after having been part of the Spanish colonial empire and the republic of Gran Colombia.