The Heping district People's Court in Shenyang in Liaoning Province in its verdict charged the man with inciting ethnic hatred after he set up a website and online chat groups and posted pictures and articles attacking Muslims from April 2009 to June 2016.
Several Muslims reported Li to local authorities, state- run Global Times reported today.
The verdict delivered in November said that Li's behaviour violated the principle of ethnic equality and negatively impacted society.
Li was detained in September 2009 for inciting ethnic hatred, but later released on bail. However, he was arrested again for the same charge in June 2016, the verdict read.
The law also forbids activities such as inciting ethnic hatred, discrimination and spreading violent and obscene content online.