Another defendant was handed down a three-year prison sentence and four more were acquitted.
The 17 had all been charged with attempted murder of police officers, taking part in an unauthorised demonstration and possessing petrol bombs.
They were arrested after unrest on May 1, 2012 in a Shiite village where a policeman suffered burned hands when his patrol was attacked.
In a separate case in another Manama court today, a policeman was acquitted of attempting to murder a protester because of insufficient proof, the source said.
The source said lawyers cited medics as saying the dead man was hit in the heart, lung, stomach and spleen by buckshot.
Under cross-examination, the policeman admitted he was the only member of his patrol to have opened fire on the day of the killing, lawyers said in challenging the acquittal.
A Shiite-led uprising to demand democratic reforms in Sunni-ruled but Shiite-majority Bahrain was crushed in March 2011.
King Hamad in August this year ordered stiffer penalties for "terror acts".
Strategically located across the Gulf from Shiite Iran, Bahrain is home to the US Navy's Fifth Fleet and is an offshore financial and services centre for its oil-rich Arab neighbours.
At least 89 people have been killed since the protests began, according to the International Federation for Human Rights.
