The "Republic of the Ecuador" was one of the three countries that emerged from the collapse of Gran Colombia in 1830. Between 1904 and 1942, Ecuador lost territories in a series of conflicts with its neighbors countries. Peru went into a war 1995 and it was resolved in 1999.