 Both Peter II's divorce case and the case of William IX's legitimacy were litigated in Rome in 1212–13.Pope Innocent III decided in favour of Peter, legitimising his marriage to Mary and their children, in January 1213.He decided against William, rejecting his father's marriage to Agnes as adulterous and declaring him illegitimate, in April 1213.