Two mentally disabled immigrants must be given lawyers as they fight deportation, a U.S. district court judge has ruled.

Jose Franco-Gonzalez, 29, of Costa Mesa, and Guillermo Gomez-Sanchez, 48, of San Bernardino, are at the center of a case that marks one of the first instances in which a judge ordered representation for an individual in immigration proceedings, according to a coalition of advocacy lawyers arguing the men's cases.

The decision by U.S. District Court Judge Dolly Gee came last week just before Christmas. Both men have been free pending a bail hearing also ordered by Gee.

In a March lawsuit, the ACLU of Southern California and other advocates argued that the men's diminished mental capacities made them unable to voice their own interests.