Pedro Afonso, Count of Barcelos, was an illegitimate son of King Denis of Portugal and Grácia Frois. He was made the 3rd Count of Barcelos on 1 May 1314.