The selloff came during a week when investors were rattled by Saudi Arabia's deteriorating relations with foreign powers following the disappearance of journalist Jamal Khashoggi.
Riyadh said on Saturday that Khashoggi died in a fight inside its Istanbul consulate, its first acknowledgement of his death after denying for two weeks that it was involved in his disappearance.
A breakdown of the data showed foreigners sold 5 billion riyals worth of stocks and bought 991.3 million worth.
The Saudi stock market is down about 4 percent since Khashoggi's disappeared. The market had started to weaken before the incident as foreign funds slowed their buying after MSCI's announcement in June that the kingdom will be included in its global emerging market benchmark next year.
As of Sunday, the Saudi index was up 5 percent so far this year, but down 5 percent this quarter.