Fernando Arias Amparo and Victor Aguirre Espinoza exchanged vows on Saturday, ending nearly two years of legal wrangling to become the first gay couple to marry in Baja California, Mexico.

The couple, together 10 years, married during an impromptu wedding outside the City Hall of the state's capital of Mexicali.

A ruling from Mexico's Supreme Court paved the way for the couple to marry, but officials rejected the couple three times.

(Related: Baja California's first gay wedding blocked by claim couple is not sane.)

On Saturday, a crowd of about 500 people gathered outside Mexicali City Hall to protest the continued delay. According to The San Diego Union-Tribune, the couple emerged from private meetings with city officials and the mayor to announce that the wedding would take place.

The men married under a canopy in front of City Hall surrounded by supporters and a crush of media.