(CNN) -- Two Swedish journalists charged with terrorism in Ethiopia face years in prison after their arrest in a prohibited region along the nation's border with Somalia.
Ethiopian troops captured Johan Persson and Martin Schibbye in July during a gunfire exchange with a rebel group in Ogaden, according to state media.
Press freedom groups said the two were embedded with the Ogaden National Liberation Front rebels while working on a story about the region.
Journalists and aid workers are prohibited from traveling to Ogaden, which activists say is rife with human rights abuses against ethnic Somalis by Ethiopian troops.
The federal prosecutor has charged the two with "attempting to dismantle the constitutional system through the organized armed group," according to the Ethiopian News Agency.
Ethiopian officials have publicly accused the journalists of being accomplices to terrorism after the government declared the rebels a terrorist group in June.
The two face two counts: one for entering the country illegally and a second for providing assistance to a terrorist organization, according to the Committee to Protect Journalists.
Both journalists have pleaded guilty to entering the country illegally through Somalia without accreditation, according to the journalists' group, which says Ethiopian officials deny media access to the area without government minders.
The two are contributors to the Sweden-based agency Kontinent.
They face 15 years in prison if found guilty.