Afonso V (European Portuguese: [ɐˈfõsu]; 15 January 1432 – 28 August 1481), also known as the African (Portuguese: o Africano), was King of Portugal from 1438 until he died in 1481, with a brief interruption in 1477. The son of Edward, King of Portugal, and Eleanor of Aragon, Afonso acceded to the throne when he was only six years old. His early reign was marked by a struggle over the regency between his mother, Eleanor, and his uncle, Pedro, Duke of Coimbra. Pedro was appointed sole regent in 1439, but the Braganza faction at court continued to challenge his authority. Influenced by his other uncle, Afonso I, Duke of Braganza, the King dismissed Pedro in 1448 and defeated him in the Battle of Alfarrobeira in 1449.
Between 1458 and 1471, Afonso pursued military campaigns in Africa, concentrating efforts predominantly on Morocco. His successful conquests of Alcácer-Ceguer, Arzila, and Tangiers earned him the sobriquet O Africano.