In the 15th century, the Spanish arrived and began their conquest of the region. In 1534, the Spanish conquistador Sebastián de Belalcázar founded the city of Quito, which served as the capital of the Royal Audience of Quito within the Spanish Empire.
The independence movement in Latin America gained momentum during the early 19th century, and Ecuador became part of the Republic of Gran Colombia in 1822, led by Simón Bolívar. However, in 1830, Ecuador separated from Gran Colombia and declared its independence as a sovereign state.
The period after independence was marked by political instability and internal conflicts. Nevertheless, prominent leaders such as Juan José Flores and Vicente Rocafuerte played significant roles in shaping Ecuador's early history and establishing its national identity.
Throughout its history, Ecuador has experienced various challenges and changes, but the establishment of the country as an independent nation can be attributed to the cumulative efforts and aspirations of its people and the influence of historical figures during different eras.