King Abdullah Monday decreed jail terms of up to 20 years for belonging to "terrorist groups" and fighting abroad, as it struggles to deter Islamist Saudis from becoming jihadists.
"Taking part in combat outside the kingdom, in any form" will be punished by jail terms of between three and 20 years, said the decree published by state news agency SPA.
Similar sentences will be passed on those belonging to "extremist religious and ideological groups, or those classified as terrorist organisations, domestically, regionally and internationally," it said.
Supporting such groups, adopting their ideology or promoting them "through speech or writing" would also incur prison terms, the decree added.
Saudi Arabia set up specialised terrorism courts in 2011 to try dozens of nationals and foreigners accused of belonging to Al-Qaeda or being involved in a wave of bloody attacks that swept the country from 2003.
Scores of Saudis are believed to have joined Islamist extremists fighting in Syria, where Riyadh is a strong backer of the nearly three-year rebellion against the regime of President Bashar al-Assad.