Answer
Pope Alexander VI annulled Louis XII's marriage to Joan because Louis wanted to marry the widow of King Charles VIII of France, Anne of Brittany. As Joan had already produced an heir, Louis sought an annulment to maintain France's claim to Brittany. Alexander obliged despite Joan's objections, allowing Louis to remarry and preserve the political alliance with Brittany.