A federal judge in Boston has allowed two illegal immigrants to get married in her courtroom so that the groom can piggyback on to his new wife's asylum application.

Chief Judge Patti Saris made the order on Wednesday which allowed Jaime Antonio Alvarez Figueroa, 29, and Tatiana Chavez Vanegas, 23, to get married.

The pair are from El Salvador, have been together for several years and have a two-year-old daughter.

Chief Judge Patti Saris made the order Wednesday allowing Jaime Antonio Alvarez Figueroa, 29, and Tatiana Chavez Vanegas, 23 (pictured with their two-year-old daughter), to get married

They were living in Boston when Figueroa, a chef who has been in the US since 2005, was arrested for a DUI and driving without a license in April 2017.

Upon his arrest, ICE put him in federal jail and he has remained there ever since.

It has left him unable to marry Vanegas, the mother of his two-year-old daughter.

On Wednesday, his lawyer Kerry Doyle asked the judge to allow him and the woman to get married, citing their hurry to become legally bound before ICE has a chance to deport him.

They had a marriage license at the ready and her paralegal performed the ceremony.

Judge Patti Saris allowed two illegal immigrants to get married on Wednesday so that the groom, who is facing deportation, can piggyback his wife's asylum application

If Vanegas, who has an asylum hearing in August, wins her case, the family has a better chance of staying together.

Judge Saris granted their motion and allowed a quick, minutes-long ceremony on Wednesday as the couple's daughter watched.

Because he is a federal inmate, he was not allowed to kiss or even touch his new bride.

The judge's clerks, overcome by the happy moment, clapped after the ceremony was complete.

Speaking to DailyMail.com on Thursday, Kerry Doyle, the man's lawyer, said it was an 'unusual' situation but that she was pleased with the outcome.

'It was quick and they were not allowed to touch. Because he is in ICE detention, they had to stand on other sides of the table.

'So it was an unusual situation but we were pleased,' she said.

The wedding took place inside Saris's courtroom in Boston's US District Court on Wednesday. Afterwards, the judge's clerks clapped and the groom was taken back to jail

She is not Figueroa's lawyer for all of his cases and the young father's legal woes are complex.

When he was arrested in 2017, he was unaware of an ongoing ICE case regarding his status in the US.

'It was quick and they were not allowed to touch. Because he is in ICE detention, they had to stand on other sides of the table Lawyer Kerry Doyle

After his arrest, ICE assumed responsibility of him and took him into federal custody.

In order for him to face the driving charges he was arrested for in state court, ICE officials had to agree to release him but they did not.

It is becoming more common for the agency to refuse to do so because, it is claimed by experts, they fear anyone let out of their control could slip through the cracks of the state system if they are temporarily released on bail.

On Wednesday, Figueroa was in court asking Saris not only to let him to get married but to compel ICE to let him go to state court and answer the charges against him.

She agreed to both. After the ceremony, he was taken back into ICE custody and his family went home.

Now, he is left to continue fighting his deportation case and the criminal charges in state court and his wife is soldiering on with her own asylum case.