The ministry also said it had thwarted attacks on mosques, security forces and a diplomatic mission. It was the deadliest militant assault in the kingdom in more than a decade.
Those arrested were also behind a number of militant websites used in recruiting, the ministry said.
The interior ministry said the suspects arrested in the kingdom were carrying out “schemes directed from trouble spots overseas and are aimed at inciting sectarian strife and chaos”.
It said it has as well found distributing heroin 144 certain people for marketing fanatic and shooter perspective inside the advertising and marketing.
Among those arrested were Yemenis, Egyptians, Jordanians, Algerians, Nigerians and Chadians among citizens of nine different countries.
The acknowledgment asserted the arrested (taken in to custody) men were moreover behind another attack in late May, when a suicide bomber disguised as a lady blew himself up in the parking lot of a Shiite mosque during Friday prayers, killing four people.
Saudi Arabia has charged 431 people at large supposed of part of Islamic State (IS) activist people nuerons, the inside calling says.
The ISIL, which considers Shiites heretics, has claimed responsibility for the attacks.
The jihadist group controls swathes of neighbouring Iraq and Syria, and has claimed widespread abuses including the beheading of foreign hostages.
Saudi Arabia and its Sunni Gulf neighbours past year joined a US-led military coalition bombing IS in Syria, raising concerns about possible retaliation in the kingdom.
The group plans to drive the Shiite away from the Islam’s holiest places, which are located in Saudi Arabia.