 In 1320 Melide obtained from the Archbishop of Santiago, Berenguel de Landoira, the privilege of building up a castle, fortressing the village, and charging taxes.In 1467 ""os irmandiños"" opposed the Archbishop Alonso II Fonseca and started a series of fights against its power.During this riot the walls of the village were destroyed as well as the castle.