In the 11th century Evora castle was constructed around the temple with the base, columns and architraves embedded into the walls of the medieval tower. Later on, the importance of Evora waned and the castle was slowly dismantled, with the temple being converted into a butchers. In 1836, the temple was identified and a restoration project was undertaken. This involved the removal of medieval brickwork, which was completed in 1871 under the direction of Giuseppe Cinatti.