The old wall was built around the city to protect it from pirates attacks and other enemies of the Spanish crown in the 17th century.
As part of urban expansion programs and construction of new avenues, the wall was demolished in 1868 under José Balta's government.