When Tom Swann and Guillermo Hernandez got engaged in December of last year, they never expected that their wedding would take place in a federal immigration detention center.

But on March 14, 2016, the two were wed at the Imperial Regional Detention Facility in Calexico, California, in what became the first wedding of a same-sex couple in immigration detention history.

The history-making wedding – which both men hoped would take place under far different circumstances in a far nicer setting – was the result of misguided policy by U.S. Immigration and Customs Enforcement (ICE) that allows immigration agents to roam courthouses and detain immigrants, regardless of whether individuals are applying for a marriage certificate or appearing in court.

Guillermo, who was arrested for underage trespassing at a casino when he was 20, and had some misdemeanor drug charges on his record, returned to the casino when he turned 21, violating a five-year-ban on entering the casino’s premises, and violating his probation. In January, he appeared for a hearing at the Riverside County Courthouse in Indio.

At his hearing, prosecutors had agreed to offer him a one-year residential drug treatment program instead of jail. As he entered the courthouse, however, Guillermo was detained by ICE and taken into custody.

mytubethumb play
%3Cobject%20classid%3D%22clsid%3AD27CDB6E-AE6D-11cf-96B8-444553540000%22%20codebase%3D%22http%3A%2F%2Fdownload.macromedia.com%2Fpub%2Fshockwave%2Fcabs%2Fflash%2Fswflash.cab%23version%3D9%2C0%2C47%2C0%22%20height%3D%22390%22%20id%3D%22flashObj%22%20width%3D%22640%22%20allow%3D%22autoplay%22%3E%3Cparam%20name%3D%22movie%22%20value%3D%22http%3A%2F%2Fc.brightcove.com%2Fservices%2Fviewer%2Ffederated_f9%3FisSlim%3D1%22%3E%3Cparam%20name%3D%22bgcolor%22%20value%3D%22%23FFFFFF%22%3E%3Cparam%20name%3D%22flashVars%22%20value%3D%22videoId%3D4800944587001%26amp%3BplayerID%3D2893028832001%26amp%3BplayerKey%3DAQ~~%2CAAAACZcC6QE~%2CkYcDWaPjQpc52VjV8N35drchpbVpzU9l%26amp%3Bdomain%3Dembed%26amp%3BdynamicStreaming%3Dtrue%22%3E%3Cparam%20name%3D%22base%22%20value%3D%22http%3A%2F%2Fadmin.brightcove.com%22%3E%3Cparam%20name%3D%22seamlesstabbing%22%20value%3D%22false%22%3E%3Cparam%20name%3D%22allowFullScreen%22%20value%3D%22true%22%3E%3Cparam%20name%3D%22swLiveConnect%22%20value%3D%22true%22%3E%3Cparam%20name%3D%22allowScriptAccess%22%20value%3D%22always%22%3E%3Cembed%20allowfullscreen%3D%22allowfullscreen%22%20allowscriptaccess%3D%22always%22%20base%3D%22http%3A%2F%2Fadmin.brightcove.com%22%20bgcolor%3D%22%23FFFFFF%22%20flashvars%3D%22videoId%3D4800944587001%26amp%3BplayerID%3D2893028832001%26amp%3BplayerKey%3DAQ~~%2CAAAACZcC6QE~%2CkYcDWaPjQpc52VjV8N35drchpbVpzU9l%26amp%3Bdomain%3Dembed%26amp%3BdynamicStreaming%3Dtrue%22%20height%3D%22390%22%20name%3D%22flashObj%22%20pluginspage%3D%22http%3A%2F%2Fwww.macromedia.com%2Fshockwave%2Fdownload%2Findex.cgi%3FP1_Prod_Version%3DShockwaveFlash%22%20seamlesstabbing%3D%22false%22%20src%3D%22http%3A%2F%2Fc.brightcove.com%2Fservices%2Fviewer%2Ffederated_f9%3FisSlim%3D1%22%20swliveconnect%3D%22true%22%20type%3D%22application%2Fx-shockwave-flash%22%20width%3D%22640%22%3E%3C%2Fembed%3E%3C%2Fobject%3E
Privacy statement. This embed will serve content from brightcove.com.

Read more about Tom and Guillermo's wedding day. Video footage courtesy of The Desert Sun

Guillermo, who has lived in the United States since he was seven years old, applied for and was granted protection under Deferred Action for Childhood Arrivals (DACA), a special program that shields some young immigrants from deportation. But after his brushes with the law, he was denied renewal of his special status.

Now, Guillermo, who was able to secure legal help from Centro Legal de la Raza, is awaiting the outcome of his case. At the ACLU of Southern California, we believe that Guillermo should never have been detained by ICE because the federal agency has repeatedly said it focuses enforcement efforts on immigrants who may pose a threat to public safety. Clearly, Guillermo is not a threat to his community.

Moreover, once detained he should have been eligible for release on bond for that very same reason.

Yet Guillermo remains locked up in an immigration jail because federal immigration officials failed to follow their own rules. And Tom – a Navy veteran, who is blind and suffers from AIDS – has been left without the much-needed support and companionship of his husband.

ACLU SoCal is working to help Guillermo obtain bond and is seeking public support via a petition asking for his release.

This is not the first time the ACLU has raised serious concerns about ICE’s practice of trolling for detainees at courthouses.

In 2013, we sent a letter to ICE asking the agency stop conducting enforcement actions outside courthouses in Kern County and throughout California because such practices actually undermine public safety by discouraging immigrants from testifying in court, or even reporting crimes fearing that any contact with the legal system may result in deportation proceedings.

ICE responded in a letter and promised to stop such enforcement tactics around the Kern County Superior Court.

Then in March 2014, after increased pressure to stop the practice altogether, ICE told the Los Angeles Times that the agency “routinely evaluates its operational procedures to ensure its resources are being used effectively and efficiently, “ and had recently provided updated guidance related to enforcement actions at or in close proximity to courthouses but refused to disclose any details.

Unfortunately, it seems that two years later, little has changed in ICE’s approach to  enforcement actions around courthouses and immigrants such as Guillermo are still being targeted simply because they complied with their legal obligations and went to court.

ICE should keep its word and follow its own guidelines. But, until ICE reforms the way it operates, people like Guillermo will continue to be picked up, funneled into deportation and separated from their loved ones.

Luis Nolasco is community engagement and policy advocate at the ACLU of Southern California. Follow Luis on Twitter.

Take Action: Urge ICE to #FreeGuillermo and reunite him with husband