This church was erected in the 18th century, a monument built in 1505 by order of the archbishop of Seville, Diego Leza, before the town was founded in 1572. Two centuries later, it was rebuilt under the patronage of the Gálvez family and with the profits of the Real Fábrica de Naipes.