Chuck "Mac" MacLish is chief petty officer aboard the U.S. Navy destroyer Morgan , which, after a successful mission on the Korean coast, is ordered back to the San Diego Naval Base to undergo a thirty-day overhaul. Upon docking, most of the crew members reunite with sweethearts and wives, but no one is waiting for Mac, as he has been totally devoted to his career and become a loner. Mac goes to "Pinky's," a small bar and coffee shop, where he talks with the owner about how he is going to start saving money so he can have a home some day. Frieda, a waitress in the coffee shop, overhears the conversation and later, when Mac is drunk, takes him to her room. When he wakes up the next morning and cannot find his wallet, Mac assumes that he has been "rolled," but then finds a note from Frieda stating that she has the wallet and that he should go to Pinky's. While Mac eats breakfast, Frieda explains that she has never taken anyone to her place before but sympathized with him, as she too is lonely. After agreeing to meet when she finishes work, Mac leaves and goes to the naval landing in a taxi driven by Frieda's friend, Jimmy. Jimmy explains that Frieda lives with him and his wife and also reveals that Frieda lost her husband in the attack on Pearl Harbor. When they meet later, Mac and Frieda discover that they are both from Brooklyn and that Mac used to go to a burlesque theater where she sold the tickets. Remembering that Frieda had told him about a dream house for sale in a nearby community, Mac suddenly asks her if they might have a chance of becoming a couple. She does not answer, but kisses him and leaves. A day or two later, Jimmy drives Mac and Frieda to see the house, which is in the middle of an avocado grove, and leaves them alone to have a picnic, during which Frieda tells Mac that her husband was Jimmy's brother. Jimmy returns with the news that the house is available for a deposit of a thousand dollars and that the sale of avocados will help with subsequent payments. Mac and Frieda agree to buy the property, and she gives him her bankbook so that Mac can arrange to have his Navy allotment deposited in a new joint account. The next day, Mac and the Morgan have to return to duty, and Frieda fears for his safety, but promises she will wait at Pinky's every day at six for his return. On board, Mac has the task of breaking in a number of rookie sailors. After a visit to the monument to the fallen at Pearl Harbor, the destroyer heads for the Yalu River, separating North Korea from Manchuria, where bombers from carriers will attempt the dangerous mission of attacking only the Korean halves of three bridges that cross the river. The planes will be at the mercy of enemy anti-aircraft attacks and all damaged planes are ordered to head for the open sea and ditch, whereupon the Morgan will pick up the crews. The campaign is also dangerous for the Morgan , as the seas are uncharted and may contain mines. Mac and his crew are able to pick up crew members who parachute out of the planes but, when the ship swings close to the shore, it hits a mine, which explodes, damaging the hull. The captain requests air cover, but four enemy aircraft suddenly appear and the Morgan's battle stations are manned. Three of the planes are downed but the Morgan's captain is killed, and a young recruit dies in Mac's arms. The fourth plane is downed but crashes onto the Morgan causing great damage and crippling the vessel. However, a dozen U.S. planes fly in and Mac, who has suffered a leg injury, receives a radio message that two destroyers will be rescuing the crew. Later, as Frieda and Jimmy await news of Mac's whereabouts, he is recovering from his leg wound in a naval hospital somewhere in the Pacific. Eventually, Mac is released, and now walking with a cane, returns to San Diego. He heads for Pinky's but is told that Frieda has not been in for several days. As Mac leaves, Jimmy drives up, but he too does not know where she can be found. Suddenly, Frieda runs up and explains that she had been told that Mac was returning to San Francisco and had gone there. Later, immediately after Frieda and Mac's marriage ceremony, a shore patrol officer arrives with orders to take Mac into custody. However, he is taken out in a boat to the refitted Morgan , where the new captain explains that the report on Mac's medical condition requires that he retire. Mac, who has served twenty-two years in the Navy, admits that he does not mind retiring as he has Frieda. Before leaving the ship, Mac is invited to look it over and finds the entire crew respectfully waiting at attention to present him with a gift. Mac salutes the officers and crew, then returns to the dock, where Frieda is waiting for him.