Police took control of the situation at Kamandura near Limuru where a tanker ferrying fuel overturned.
Sources said the tanker veered off the road after its driver lost control.
Locals were spotted with jerrycans ready to siphon fuel.
Their efforts were however thwarted by the officers who responded on time.
The officers warned them of risking their lives by rushing to loot from the tanker.
The accident occasioned a traffic snarl-up on the Nairobi-Nakuru highway as fog and light rains characterized the scene.
Other motorists were cautioned about the state of the road following the Sunday morning accident.
The driver was rescued from the vehicle as the scene became under the control of the police.