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.