Alfonso became heir to the throne in December 1319 after his older brother James renounced his rights to become a monk. During the reign of his father, Alfonso was the procurator-general of the Crown, and in 1323–1324, he undertook the conquest of Sardinia.