The celebration of La Mercè has religious origins, honoring the Virgin of Grace (Mare de Déu de la Mercè), patron saint of the archdiocese of Barcelona, and co-patroness-along with Saint Eulàlia-of the city.
The festival has been celebrated since the Middle Ages when, in 1687, Barcelona suffered a plague of locusts.