 In the 18th century the main chapel of the apse was greatly expanded in size and was given a rectangular shape.In the 19th century, with the dissolution of the religious orders in Portugal, the monastic church became a simple parish church of Rates.After a period of decay, the church was recognised as one of the oldest and most influential of the Portuguese Romanesque churches.