John I of Portugal
After the rise of John I of Portugal to the Portuguese throne, the castle and associated lands were given to the constable Nuno Álvares Pereira, who later passed them on to his grandson.