The entire plot of Some Like It Hot is a carefully constructed series of reveals and escalating complications. The central deception is that Joe and Jerry are men disguised as women to hide from the mob after witnessing the St. Valentine's Day Massacre. This leads to the film's main romantic and comedic entanglements. The first major twist in their plan is both of them falling for Sugar Kane. Joe then complicates matters further by creating a second, male disguise: the shy, impotent millionaire 'Junior,' heir to Shell Oil, in a calculated effort to seduce Sugar. He successfully woos her aboard Osgood Fielding III's yacht, which he has commandeered for the night.
Meanwhile, Jerry as Daphne, in trying to fend off the advances of the real millionaire Osgood, accidentally gets engaged to him. The climax occurs when the mob, led by 'Spats' Colombo, arrives at the same Florida hotel for a convention of 'Friends of Italian Opera.' Their cover is blown, and a chaotic chase ensues through the hotel. Spats and his gang are ultimately gunned down in an elevator by their own boss in a parody of their earlier massacre.
In the final sequence, Joe, Jerry, and Sugar escape with Osgood on his yacht. Joe confesses his entire deception to Sugar. Instead of being angry, she kisses him, admitting she doesn't care that he's not a millionaire because she loves him. The film's final and most famous reveal comes when Jerry, as Daphne, tries to list all the reasons he can't marry Osgood, finally culminating in him ripping off his wig and shouting, "I'm a man!" Osgood, completely unfazed, smiles and delivers the iconic line: "Well, nobody's perfect." This ending leaves the resolution of Jerry and Osgood's relationship wonderfully ambiguous, concluding the film on a perfect note of comedic surprise and radical acceptance.