The last of the Afonsin dynasty , King Fernando I ( 1367-1383 ) , formed an alliance with the English and appealed for support in his disputes with Spain .
King Fernando I was the last ruler of the Afonsin dynasty .