====Struggle for Independence====During the struggle for independence, before Peru or Ecuador became independent nations, a few areas of the former Vice Royalty of New Granada - Guayaquil, Tumbez, and Jaén - declared themselves independent from Spain.