Wang Hao attended the first national flag-raising ceremony of the new semester on Monday. Only three people took part - Wang and his two teachers.
The 12-year-old student, who is in the fifth grade, has been the sole student at Sanmenli Village Primary School since September.
Sanmenli, home to more than 1,000 residents, is about 90 kilometers from downtown Gongzhuling in Jilin province.
"In the past, the primary school was well-known in the nearby villages. At one time there were more than 200 students and a dozen teachers," said Wang Lixin, the village's Party chief. "However, the teachers retired one by one after 2010 and students began to transfer to nearby Maochengzi Town Primary School."