[2][3] Spain also maintains an Embassy in Lima, headed by its Ambassador, Alejandro Alvargonzález San Martín.
[4] Both countries officially established relations on August 15, 1879, under Alfonso XII and have since maintained diplomatic relations with a brief exception during the years 1936 to 1939 as a result of the Spanish blockade of the embassy during the Spanish Civil War due to the influx of refugees at the time.
After Peru established relations with the Sahrawi Arab Democratic Republic, the Moroccan government began a diplomatic campaign which led to the embassy reopening in 1986, with both countries strengthening their relations.
[7] The embassy was formerly located at building number 36 of the Calle del Príncipe de Vergara [es].
[8] In January 2023, the embassy's surroundings were blocked by protestors as part of a series of protests in support of former president Pedro Castillo and against Peruvian president Dina Boluarte.