Ferdinand had waged three wars against Castile during his reign, and the marriage, celebrated in May 1383, was intended to put an end to hostilities by a union of the two crowns; however, this was not a widely accepted solution.