Sinai Islamists carry Al Qaeda flag (file)
Sinai Islamists carry Al Qaeda flag (file)Reuters

An Egyptian military court sentenced to death seven members of an Al Qaeda-inspired jihadist group Tuesday for carrying out deadly attacks on the army, military officials said.

Two other members of Ansar Bayt al-Maqdis (Partisans of Jerusalem) were sentenced to life in prison, which amounts to 25 years in Egypt, AFP reports.

The Sinai-based group has claimed some of the deadliest attacks on security forces since the ouster of president Mohamed Morsi last year as retaliation for a crackdown on Morsi's supporters that has left hundreds dead and thousands jailed.

The military court in Cairo convicted the nine jihadists of killing six soldiers in a March attack on an army outpost Qalubiya province, north of Cairo, army officials said.

They were also found guilty of killing two military explosive experts when a joint police-army team went to arrest them after the attack.

Prior to Morsi's overthrow, Ansar Beit al-Maqdis was known for firing rockets at Israel and attacking pipelines in Sinai that supply gas to the Jewish state.

In recent weeks, the group has claimed the beheading of men it accused of spying for the Egyptian army and Israel's Mossad intelligence service.

It says it supports the Islamic State group, which has seized swathes of territory in Iraq and Syria, but has not pledged formal allegiance to it.