Updated

An American citizen of Moroccan descent who was charged in a police sting with plotting to blow up New York synagogues will spend five years in prison.

Mohamed Mamdouh was sentenced Friday in a state court in Manhattan.

He previously pleaded guilty to charges that included conspiracy as an act of terrorism.

His co-defendant, Ahmed Ferhani was sentenced last month to 10 years in prison.

Authorities say the two Queens men wanted to avenge what they saw as mistreatment of Muslims around the world.

Mamdouh immigrated with his family in 1999. His parents are local business owners.