Lieutenant Richard Houston, a U.S. Navy officer who deserts during peacetime to escape gambling debts and ends up living as a hobo, is drawn back into service after the Pearl Harbor attack. He re-enlists under the assumed name Jim "Tennessee" Smith and is assigned to a minesweeper, where he carries out a string of successful mine defusings in the San Diego harbor while struggling to keep his true identity hidden.
The mission soon deepens into a personal test as Houston becomes entangled in a love triangle with Seaman Elliot Nash for the affections of Mary Smith, the niece of Chief Petty Officer Fixit Smith. Mary’s warmth draws Houston in, even as the danger of exposure shadows every decision, and the bond between him and Nash tests their competition with a shared goal of protecting Mary and the rest of the crew.
Tensions mount when Houston’s gambling past resurfaces in a harsh act of consequence: he oversteps his shore leave, and Fixit Smith—who has stepped into a leadership role—is killed by a mine. The tragedy hits Houston hard, and he confesses to Mary that his late-night gambling was a misguided attempt to fund an engagement ring, leaving him crushed by the realization that his AWOL status helped cause a friend’s death. The guilt gnaws at him, and he nearly deserts again, but he chooses to return to duty for one last, critical mission.
Back on base, his immediate superior, Lt. Ralph Gilpin, discovers Houston’s true identity. Despite being branded as a “prisoner-at-large,” Houston volunteers to help clear the harbor’s lanes of mines so a troop ship can safely depart for the Pacific—an act of defiance and courage that reframes his desertion as a reluctant, steadfast heroism. Gilpin faces a tough choice between duty and discipline, and he ultimately makes a bold call that could save countless lives.
During a tense dive in San Diego harbor, Houston and Nash discover that the acoustically sensitive mines respond to the sound of aircraft overhead; as Nash relays the findings to Gilpin on the diving launch, Houston makes a fateful decision and cuts Nash’s oxygen line, forcing the crew to pull him back to safety. Undeterred, Houston presses on alone, attempting to access the mine’s control panel, but the device explodes, taking his life. Nash, aboard the launch, declares Houston a true hero, even in death.
Gilpin, witnessing the sacrifice, realizes a countermeasure: aircraft flying at low altitude over the water can trigger the mines to rise and be blown up, rendering the harbor safe for the convoy. A Consolidated PBY Catalina captain flies at a perilous low level, triggering the mines and allowing the sweepers to obliterate each one. As the operation concludes, a message arrives from the Secretary of the Navy confirming that the Navy and Marine Corps Medal has been posthumously awarded to Gunner’s Mate First Class James Smith, United States Naval Reserve, recognizing the brave, selfless work Houston undertook to protect his ship and his country.