it was the scenery of many confrontations between portugal and the kingdom of castilla