The Specialised Criminal Court in Riyadh sentenced 15 other suspects to prison terms ranging from six months to 25 years, and acquitted two, the Arabic-language al-Riyadh newspaper said on its website.
Saudi prince executed for murder
The suspects, comprising 30 Saudi Shias, one Iranian and an Afghan, were detained in 2013 on charges of spying for Iran and went on trial in February. The rulings are subject to appeal, and death sentences must go to the king for ratification.
The trial is the first in recent memory in which Saudi citizens have been accused of spying. It comes at a time of high tension between Saudi Arabia, the regional Sunni powerhouse, and Iran, a non-Arab Shia theocracy, over influence in the Middle East.
In January, Saudi Arabia executed a prominent Shia cleric convicted of involvement in the killing of policemen, prompting protesters to storm the Saudi embassy in Tehran. Riyadh then broke off diplomatic ties.
Many of the suspects are former employees of the Saudi defense and interior ministries, Saudi media said. They were accused of setting up a spy ring and passing sensitive military and security information to Iran, seeking to sabotage Saudi economic interests, undermining community cohesion and inciting sectarian strife.
14 get death for Saudi Shia town unrest
The charges also included supporting protests in the Shia-majority region of Qatif in Eastern Province, recruiting others for espionage, sending encrypted reports to Iranian intelligence via email and committing high treason against the king.
Among those arrested in 2013 were an elderly university professor, a pediatrician, a banker and two clerics.
Most were from al-Ahsa, a mixed Shia and Sunni region that is home to around half the members of the kingdom's minority Shia community.
Saudi Arabia has blamed sporadic unrest among Shias in Qatif on Iran, but has never publicly presented evidence of a direct link between Tehran and those who took part in protests between 2011 and 2013. Iran denies any involvement.
Shias in Eastern Province say they face persistent discrimination affecting their ability to work, study and worship freely, charges Riyadh denies.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ