 Following the earthquake it was rebuilt on the site it currently occupies, as a rectangular layout with eight towers and two gates.At the centre was the Parish Church of the Encarnación, built as a fortress to protect the village against pirates.In the late 19th century the town expanded due to mining activity in the region, but it subsequently declined until its recent development as a tourist centre.