 The Arabic inscription in Kufic on the building states that Musa Ibn Ali built it.King Alfonso VIII decided to give the building to the Order of the Hospital of the Holy Cross in 1182.Christian elements were added to it after such as the semi circle dome at the top of the altar and murals of Christian figures.