A prominent Saudi journalist who was arrested in 2018 and convicted on terrorism and treason charges after tweeting against the government has been executed.

Turki Al-Jasser, who was in his late 40s, was put to death on Saturday, according to the official Saudi Press Agency, after the death penalty was upheld by the nation's top court.

Authorities had raided Al-Jasser's home in 2018, arresting him and seizing his computer and phones.

It was not clear where his trial took place or how long it lasted, but he is believed to have been tortured during his seven-year imprisonment, The Guardian reports.

According to the New York-based Committee to Protect Journalists, Saudi authorities believed that Al-Jasser was behind a social media account on X which exposed human rights violations by officials and the royals.