AMMAN, Jordan — A Jordanian court on Tuesday sentenced 10 people to prison terms of between three years and life in connection with a deadly 2016 attack claimed by the Islamic State group.

The shooting attack in Karak, site of one of the region’s largest Crusader castles, killed seven policemen and two Jordanian civilians as well as a female Canadian tourist, and wounded 34 other people.

The defendants were charged in state security court, a military tribunal, with “terrorist acts,” illegal possession of arms, and producing explosives.

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

Two of them were handed life terms, while three were sentenced to 15 years in prison and five others to serve three years in jail. One defendant was acquitted.

Courts in Jordan, the target of several deadly attacks, regularly put on trial suspected jihadists.

A close ally of Washington, the desert kingdom is part of a US-led coalition fighting IS in neighboring Syria and Iraq, and it allows coalition forces to use its bases.