A court in the Hamas-run Gaza Strip on Wednesday sentenced eight members of the rival Fatah faction to lengthy jail terms for undermining “revolutionary unity,” the interior ministry said.

Fatah, which is headed by Palestinian Authority President Mahmoud Abbas, was largely ejected from Gaza in 2007, when Hamas seized power in a bloody coup. Fatah controls the West Bank, where Abbas is based.

The convicted men were found to have collected “security information” against Hamas, including on the “structure and movements” of its militants, in cases dating back to 2014, the ministry said in a statement.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

Three were jailed for life by the military court, while the rest received sentences ranging from seven to 15 years.

They were members of the Fatah-led security services.

Fayez Abu Eita, a spokesman for Fatah in the Gaza Strip, called the sentences “political and unjust.”

A number of attempts at reconciliation between the two sides have failed.

The Palestinian Authority security forces in the West Bank, run by Fatah, regularly arrest Hamas members.