The 1868 Arica earthquake destroyed the earlier custom house, which was built on the same site. As a result, in 1871 the then Peruvian president José Balta commissioned Gustave Eiffel's company to design a building to serve as a custom house, which was inaugurated in 1874. It is a prefabricated building whose components were brought from Paris. The building survived the tsunami of 1877.