A cyclist in Mexico City put his life on the line as he tried to shepherd a stray dog to safety as it ran through busy city streets.

The video shows a tiny, stray dog running out of a side road in front of the cyclist, who then sets off in pursuit as the dog somehow avoids being run over by a bus and a number of cars.

>>> Watch: Dog joins bike race; has the time of its life as it races ahead of peloton

Some of the same stunts are pulled off by the cyclist who squeezes in front of a bus before pulling out into the middle of the road, shouting and waving his arms as he tries to hold back the traffic.

Eventually he manages to force the dog onto the left-hand side of the road, out of the way of most of the traffic. The dog then takes to the pavement where it is missed by a few people, before being caught by a builder.