According to Chinese media reports, 21 humanoid robots, including machines from private firms and universities such as Tsinghua, were put to the test along the 21km (13-mile) route in the capital’s Daxing district.
Video footage from state news agency Xinhua showed several human-sized robots – one wearing a black sun hat and white gloves – alongside several much smaller ones running in parallel to the competitors.
One of them, the size of a small child, was dressed in a bright silver and blue suit and wore headphones.
The rules of the race allowed both manually or semi-manually controlled robots and fully autonomous ones to compete, and some of those taking part used the race to test their AI systems.

The teams operating the robots were allowed to change their batteries during the race or operate as a relay team.