It is the first major sporting occasion in the Chinese capital since the Winter Olympics in February.
China continues to adhere to a strict zero-covid policy, with lockdowns, quarantines and serious regimes imposed even after the smallest outbreaks.
As a result, only other people living in Beijing were allowed to participate in the race, unlike previous editions, which had attracted foreign runners.
Some runners kept their face mask for the race, which Xinjiang’s Anubaike Kuwan won in two hours, 14 minutes and 34 seconds.
The marathon was due to resume last year, but was cancelled to avoid any covid outbreaks ahead of the Beijing Olympics.
On Sunday, runners passed through Tiananmen Square as they finished the race through the streets and highways of the Chinese capital.
The festive atmosphere, with some participants dressed in colorful wigs, carrying flags or other young people applauding.
China’s zero-covid policy has noted that it sharply cut ties with the rest of the world since 2020 in an effort to restrict outbreaks through travelers.
The policy has also disrupted the country’s ambitions to host major events, with Formula 1 grands prix, golf and tennis cancelled in recent years.
In recent days, China has recorded its number of positive cases of the virus since May.