The first same-sex couple have married in the Mexican state of Baja California, after a protracted legal battle and numerous failed attempts.

The Mexican Supreme Court ruled last year that the northern state – which borders the US state of California – could not prevent Victor Aguirre Espinoza and Fernando Urías Amparo from marrying.

However, the pair, who have been trying to marry for months, have suffered a number of mysterious setbacks at the hands of the state – being forced to cancel their ceremony at the last minute four separate times, over bureaucratic hurdles.

However, after the couple’s attorney filed a formal complaint against the city of Mexicali for allegedly disobeying the Supreme Court’s ruling, the pair were finally allowed to marry yesterday.

The pair – who first attempted to marry in 2013 – wed in a ceremony with far less attention than some of their previous attempts.

Urias said that the case shows “when people work together, this works”.

The pair originally planned to marry in November, but were forced to cancel the plans, after an ill-timed bomb threat was made at Mexicali City Hall.

The couple’s attorney accused Mayor Jaime Díaz Ochoa of deliberately throwing bureaucratic hurdles in the way of rescheduling the wedding.

Another wedding attempt was aborted last week – when a counsellor claimed that the pair were too insane to marry.