BOSTON — A man who has been detained by U.S. immigration authorities for a year has gotten married in a Boston federal courtroom, where the judge gave the green light to the unusual ceremony.

Jaime Antonio Alvarez Figueroa and Tatiana Chavez Vanegas were married in U.S. District Court Chief Judge Patti Saris' courtroom on Wednesday. Alvarez Figueroa's attorney Kerry Doyle says a paralegal for Doyle's firm performed the wedding in Spanish.

Doyle says Alvarez Figueroa had been trying to secure permission to get married at the jail where he's being detained but the wedding wouldn't have been able to happen until September.

The judge says in her order allowing the courtroom wedding that "prisoners have a right to marry ... and a delay of almost five months is unreasonable."