This is one of many churches built during the Christianization of territory won from the Moors by James I in legendary 13th-century battles
James I himself visited the church and blessed it with his sword.