In 1333, the six years old second son of Charles Robert, Andrew (1327-1345) was taken to the court of Naples by his father for dynastic purposes, who put him under guardianship of Robert the Wise. Andrew was betrothed in 1334 to his cousin Joanna, granddaughter and heiress apparent of King Robert of Naples; Andrew's father was a fraternal nephew of King Robert. At the age of 15 he married Joanna I of Naples. After the death of Robert (1343), the King of Naples, Andrew became a victim of power clashes in the court of Naples.