SHANGHAI - Beijing will hold its city-wide marathon on Oct. 31, resuming the annual race after suspending it last year due to COVID-19, state media Xinhua said on Sunday.

The marathon is expected to host about 30,000 runners, starting in Tiananmen Square and finishing at Olympic Forest Park, Xinhua said, citing organisers.

Ahead of next year's Beijing Winter Olympics, China has been hosting other large events, now that the authorities have largely contained the spread of the coronavirus, first detected in central China two years ago.

Beijing marathoners will be required to stay in the capital at least 21 days before the race, declaring their health status online every day during the period, Xinhua said.

The race will be open to permanent residents of Beijing, aged 20 years or older. Runners must submit proof of vaccination and a negative nucleic acid test to compete.

The organising committee will also invite domestic elite athletes, who will be remain under "closed-loop management" until the end of the competition, Xinhua reported.

The International Olympic Committee said this month the 2022 Olympics will be open to spectators from mainland China only, and unvaccinated athletes must spend 21 days in quarantine ahead of the Games.

(Reporting by Josh Horwitz; Editing by William Mallard) ((Josh.Horwitz@thomsonreuters.com; +86 21 20830007;))