BEIJING—China sentenced a prominent political activist to four years in prison and accused an academic from northwest China's Uighur ethnic minority of taking part in separatist activities, in a sign of the new Chinese leadership's intolerance of even moderate dissent.

The Beijing First Intermediate People's Court sentenced legal scholar Xu Zhiyong to four years in prison for disturbing public order on Sunday morning, according to...