The story opens aboard a fully rigged naval training ship for cadets, where discipline and seamanship are the order of the day. Jim is a promising young English merchant seaman who rises to first officer under Captain Marlow, [Jack Hawkins]. He seems destined for a straightforward, honorable career, but a fateful turn of events begins to unravel his path. After an injury keeps him ashore in Java, Jim recovers and signs on with the first ship that will take him—an aging freighter called the SS Patna, crowded with hundreds of Muslims on a pilgrimage to Mecca. Suddenly, a violent storm tests the ship’s integrity, and fear grips the crew as the hull leaks and the lifeboats are abandoned. In a moment of weakness, Jim joins the others and abandons his passengers in the panic.
When they reach port, the sailors are stunned to find the Patna already waiting, untouched by the disaster they fled. The rest of the crew disappears, and Jim is left to confront the truth of his actions. He returns to the authorities and confesses his guilt at a formal inquiry, losing his sailing papers in the process. Plagued by remorse, Jim becomes a drifter, drifting from one harbor to another and wondering if redemption is possible in a life shaped by one terrible choice.
One day, a chance act of courage changes his course again. Jim saves a boatload of gunpowder from sabotage, and Stein, [Paul Lukas], the cargo’s owner, offers him an extremely dangerous assignment: to transport the powder and some rifles by river to distant Patusan, where Stein’s old friend leads the local effort to push back bandits led by the General. This mission would test Jim’s nerve and skill like never before. But as plans form, he faces a new obstacle: Schomberg, [Akim Tamiroff], is bribed to deny Jim the use of the motorboat that had been promised to him. Undeterred, Jim ends up taking a sailboat with two native crewmen, leaving Stein behind in a calculated, desperate gamble.
As they near Patusan, danger closes in from another direction. One of the two crewmen reveals himself to be secretly working for the General; he kills the other sailor and races to warn his commander. Jim manages to hide the cargo, but the revelation lands him in captivity. He endures torture without breaking, steadfast in not revealing the cargo’s location. That night, The Girl, [Daliah Lavi], arrives in the nick of time to lead Jim’s rescue, injecting a glimmer of hope into a situation that has grown perilously dark.
With the cargo secured and the United front behind him, Jim distributes the arms and lays out a plan to attack the General’s stockade. He is aided by Waris, [Jûzô Itami], the chief Du-Ramin’s son, and together they prepare to strike. After a long, brutal confrontation, Jim executes a bold strike—he pushes a barrel of gunpowder through a hail of bullets into the bandits’ final stronghold, detonating a decisive explosion that claims the General’s fortress and devastates the enemy’s forces. In the aftermath, only Cornelius, [Curd Jürgens], survives by slipping into a secret underground chamber that holds the General’s hidden treasure. Jim is hailed as a hero by the people of Patusan, and Du-Ramin bestows a title upon him, a tuan meaning “Lord,” recognizing his leadership and courage.
Back in Patusan, Jim finds contentment living with The Girl, cherishing the village’s beauty and the life he has helped secure. Yet not everyone is satisfied with the new order. Cornelius and Schomberg recruit the notorious cut-throat “Gentleman” Brown, [James Mason], along with his men, to attempt to steal the treasure. Their audacious bid is quickly detected, and the village stands firm in opposition to their treachery. Brown insists on leaving peacefully, but the villagers do not trust him, and the tension rises to a dangerous peak. Jim argues for letting Brown and his men depart without bloodshed, even offering his own life as a guarantee that no one will be harmed if they leave. Under the cover of a dense fog, Brown and his group attempt one last grab for the treasure, testing the village’s resolve.
Waris and Jim respond decisively, dispatching Brown’s crew, though Waris is mortally wounded in the process. In the wake of this tragedy, Stein pleads with Du-Ramin to spare Jim, and Du-Ramin agrees if Jim departs the next morning. Stein urges Jim to leave, but Jim refuses to abandon the people who have come to rely on him. The dawn of the funeral procession for the fallen villagers marks a somber moment of reflection. Jim walks up to Du-Ramin, absorbing the village’s quiet beauty, and waits. In a final, fatal act, Du-Ramin shoots him, and Jim’s body is added to the procession, which ends in the cremation of the dead. The film closes on a note of poignant, hard-won fidelity to a life forged in the crucible of loyalty, danger, and sacrifice.