It's a lot to unpack, but here's the shape of both games.
Metal Gear Solid 3: Snake Eater follows a young Naked Snake, before he earns the title Big Boss, sent during the Cold War to rescue a Soviet scientist. The mission unravels when his mentor, The Boss, apparently defects and hands miniature nukes to a rogue colonel named Volgin. With a nuclear incident blamed on America, Snake must stop Volgin, destroy his weaponized Shagohod tank, and eliminate The Boss herself. In the end he succeeds, only to learn from EVA that the whole defection was a cover story and The Boss died a patriot. He's awarded the title Big Boss, deeply disillusioned.
Metal Gear Solid 4: Guns of the Patriots jumps years ahead. An aging Snake is pulled back in to assassinate Liquid, who now controls major private military companies. War has become a global business, regulated by a system called Sons of the Patriots. Snake, alongside Otacon, works to stop Liquid from seizing that system, uncovering along the way the origins of the Patriots and the truth about Big Boss. The finale reveals Ocelot had been manipulating events, and Big Boss appears alive one last time to reconcile with Snake before dying at The Boss's grave. It's a story about loyalty, betrayal, and the cost of a life defined by fighting.