In 1819 , Colombia , Venezuela , Ecuador and Panama declared independence from Spain , and formed a country called `` Gran Colombia '' . Venezuela and Ecuador separated in 1830 .
Independence from Spain was won in 1819 , but by 1830 `` Gran Colombia '' had collapsed with the secession of Venezuela and Ecuador .