On the Mexico-United States border, a drifter (person), wearing a Union Army uniform and dragging a coffin, witnesses Mexican bandits tying a runaway prostitute, María, to a bridge and whipping her. The bandits are dispatched by henchmen of Major Jackson – a racist ex-Confederate States of America officer – who prepare to kill María by crucifixion her atop a burning cross. The drifter, who identifies himself as Django (character), easily shoots the men, and offers María protection. The pair arrive in a ghost town, populated by Nathaniel, a bartender, and five prostitutes. Nathaniel explains that the town is a Neutral zone (territorial entity) in a conflict between Jackson's Red Shirts (United States) and General Hugo Rodríguez's revolutionaries.
Twenty years after the events in the first ''Django (1966 film)'', the title character has left the violent life of a gunslinger to become a monk. Living in seclusion in a monastery, he wants no more of the violent actions he perpetrated. Suddenly, he learns from a dying former lover that some time ago he had a young daughter, who has been kidnapped along with other children who are now working for a ruthless Belgian criminal known as ''El Diablo'' (The Devil) Orlowsky, who is an arms dealer and slave trader. The children and other prisoners work in Orlowsky's mine, from which he hopes to get rich from the spoils. Determined to find his daughter and nail the bad guys, Django gets some arms and goes on the warpath against Orlowsky's private army.