Saudi Arabia's Public Prosecution sparked controversy online after tweeting out a note to all expats living in the kingdom earlier this week. 

Posted on Tuesday, the tweet listed a set of regulations all expats living in the country are expected to strictly follow. 

These include, "being considerate towards the values of Saudi society," and "respecting its traditions and sentiments."

Even though the message went down well with many Saudis, who thought people violating the ultra-conservative kingdom's rules need to be reminded of its laws, others were offended by it and felt it was uncalled for.

The tweet went viral on Saudi Twitter

"All expats living in Saudi Arabia must:

1 - Abide by the country's laws. 

2 - Be considerate towards the values of Saudi society. 

3 - Respect its (society's) traditions and sentiments."

Sparking a heated debate on the platform

The post continues to make the rounds online and is dividing thousands on Twitter. 

Some think it's the kingdom's right to lay down rules and expect expats to follow them. 

However, others believe that singling out non-Saudis in the post is racist and makes it seem as if they are the only ones not abiding by the kingdom's laws. 

Here's how the controversy is playing out online:

Many nationals are all for the tweet

"They need to respect their host country."

And think it should lead to even more action

"This note should be added to the work contract of every expat arriving in the kingdom. It should also be attached to their passports." 

"We want this note to be broadcast through all media channels and in different languages"

"Also place it on billboards across the kingdom's streets."

Some expats think there's nothing wrong with the post

"As a Syrian, I completely respect all the kingdom's rules and that's the least I can do for a country that respects all nationalities."

Others are confused over why the post upset many

"Why do you (expats) feel offended when we ask you to abide by the country's laws? We're not kicking you out of here, we're just giving you a warning." 

But many are clearing up the reason behind the uproar

"I don't know where you've picked up this rhetoric, every now and then you call out people for being 'expats' or 'foreigners,' when we're all human beings and all equal. Don't think you're so unique because you've got one nationality or the other. If God wants to set you apart for anything, it'll be your manners, that's it." 

And are angry over the tweet

"OK, so why should we have respect when you don't have any for others... shouldn't respect be mutual?"

"Everyone, both nationals and expats, must respect the kingdom's rules"

"I hope the kingdom's Public Prosecution tweets out a similar warning to Saudis"

"1 - Abiding by Islamic sharia.

2 - Respecting the sentiments of expats and not hurting them in any way.

3 - Nationals do not have the right to judge expats or blurt out racist accusations against them. 

Anyone who doesn't follow these rules must be transferred to public prosecution for investigation."