John Martin rides into the small town of Rainbow Valley and meets George, the area mailman who is desperate for water for his car. Seeing a car in the middle of nowhere surprises Martin, and he hands over his own canteen to help, a simple act that sets off a chain of events. Not far down the road, highwaymen stage an ambush for George, and Martin, following on horseback, drives the attackers away and into the surrounding dust.
Martin then helps get George to the town doctor, while Eleanor, the postmistress, watches with suspicion. George explains how he fought off the gang, and the townspeople grow tired of living under their fear. A petition to the governor begins to circulate, calling for help to finish the road and to rid the town of the gang, led by Rogers, a wealthy landowner whose real goal is to push out the locals and buy their land at a low price.
With his training in engineering, Martin volunteers to oversee the road work. Under his direction, the workers start defending themselves against renewed gang attacks, and a tense shoot-out erupts as dynamite, used by George, helps turn the tide against the intruders. Yet the gang’s reach proves dangerous: Rogers walks into the Post Office and steals the road petition, swapping it for another that frees a gang member, Butch from jail. The gang also swipes all the remaining dynamite, complicating the townspeople’s efforts.
Two weeks pass without any reply to the petition, and tension grows as Martin and George wonder about the governor’s response. At the gang hideout, the pardoned Butch seeks out Martin, his former cellmate, and it becomes clear that Butch is in town. Martin seems oddly pleased to see him and meets with the former prisoner, agreeing to destroy the road in exchange for a cut of the profits when the town sells out.
Back with the townspeople, anger and suspicion rise as Powell, the authorities’ figurehead, issues a call to arms. Eleanor discovers a letter from the governor, hinting at bigger plans and tying the whole effort to a broader crackdown. It’s soon revealed that Martin is actually an undercover agent tasked with busting the gang, and the mob moves to confront both the band and the man they believed was helping them.
A dramatic confrontation unfolds as the townspeople close in on the gang. Butch detonates dynamite, killing Rogers and all of his men, and Martin steps forward to arrest Butch, finally explaining his undercover mission to the townspeople who had trusted him. George drives his car up to the hill and remarks on the road’s success, while, in the back seat, Martin and Eleanor share a quiet, relieved kiss, signaling a fragile peace after a long night of fear, struggle, and deception.