Dubai: Leading rights activist Nabeel Rajab is to remain in custody and go on trial from October 19 on charges of posting tweets deemed insulting to authorities, the prosecution said Thursday.

A general prosecutor, Hussain Al Buali, said Rajab was charged with “publicly insulting government institutions,” after the defence and interior ministries lodged complaints over his comments on Twitter.

Rajab, who heads the Bahrain Centre for Human Rights, was released in May after serving two years in jail for participating in unauthorised protests.

But he was arrested on October 1 over his tweets.

In one tweet, Rajab charged that Bahrainis allegedly joining Islamist extremists in Syria were originally members of the kingdom’s security forces.

“Many Bahrain men who joined terrorism & [Daesh] came from security institutions and those institutions were the first ideological incubator,” he wrote.

Rajab was a leader of Shiite-led demonstrations against the government in February 2011 that were crushed a month later.