 The hospital's church was dedicated to the Three Wise Men.The hospital was run by the Lopez family then the Dominicans, than the Brothers Hospitallers of St. John of God, starting in 1604.The current structure was built over most of the 18th century with multiple adaptations and reconstructions since.