After securing a favourable alteration of his frontier with Murcia, James II occupied Sardinia in 1325. As Genoa disputed Aragonese rights there, his successors, Alfonso IV (1327–36) and Peter IV (the Ceremonious; 1336–87), were forced to wage a series of wars. Accusing his cousin, the king of Majorca, of disloyalty, Peter IV annexed Majorca permanently to the Crown of Aragon in 1343. In 1347 Peter provoked a constitutional crisis by naming his daughter as heir to the throne rather than his brother, the count of Urgel, who argued that women were excluded from the succession.