JERUSALEM (JTA) — Two Palestinian men convicted of spying for Israel were executed by Hamas authorities in Gaza.

The men were hanged on Saturday after being found guilty of “collaboration with the Israeli occupation.”

In a statement, the Hamas Interior Ministry in Gaza said the men were executed “in accordance with our religion and Palestinian law,” according to The Jerusalem Post.

They were accused of passing information to Israel that included the location of military posts, government offices, homes and weapons factories.

Some 16 Palestinian Gazans have been executed after trial since 2007 for spying for Israel. Dozens more have been killed without trials, according to The Associated Press.