The father of an undocumented immigrant accused of raping a fellow student this month at a Maryland high school has been detained by the federal authorities, the latest development in a case highlighted by the Trump administration as a reason for pursuing a crackdown on illegal immigration.

Officers with Immigration and Customs Enforcement arrested the father, Adolfo Sanchez-Reyes, on Friday after a review of his immigration history found he had entered the United States illegally, the agency said on Monday. Mr. Sanchez-Reyes, 43, is a native of Guatemala, the agency said, and is being held at a detention center in Maryland.

Mr. Sanchez-Reyes is the father of Henry E. Sanchez-Milian, 18, who with another student, Jose O. Montano, 17, was charged with forcing a 14-year-old girl into a bathroom at Rockville High School and raping her in a stall, the authorities said. Immigration officials said last week that Mr. Sanchez-Reyes’s son was a Guatemalan citizen and living in the United States illegally.

Image Henry E. Sanchez-Milian, one of two students charged with raping a 14-year-old girl. Credit... Montgomery County Police Department

Mr. Montano and Mr. Sanchez-Milian were charged as adults last week with first-degree rape and first-degree sexual offense.