A federal judge has ruled that a Mexican national who was taken into custody for deportation and kept in a cell for nearly two years is entitled to a bond hearing.

Juan Vega was arrested and served time for drug trafficking and served a yearlong prison sentence. In November 2016, he was taken into custody by U.S. Immigration and Customs Enforcement and put in a York County prison where he stayed for 21 months awaiting removal proceedings.