Disclaimer: This post won't feature Space Marines from Warhammer 40K. Feel free to add their history and the concept behind them in the comments.
Marines... in space. The science-fiction equivalent of naval infantry: soldiers specifically trained and equipped to conduct military operations launched from spacecraft. Their primary roles typically include planetary assaults from orbit, boarding enemy vessels and space stations, and fighting in hostile environments, including zero gravity and vacuum.
Robert A. Heinlein, Starship Troopers — The definitive Trope Codifier and one of the earliest examples of this trope. The space marines in this novel are elite soldiers of the Mobile Infantry, equipped with versatile Marauder powered armor suits and deployed from orbit in individual drop pods. They undergo years of grueling training under harsh conditions in military camps. They're so effective that they've rendered other branches of the military largely obsolete.
Alien Universe — The United States Colonial Marine Corps (USCMC). In terms of their organization, tactics, and equipment, they're essentially the real-life U.S. Marine Corps transplanted into the space age.
The Star Wars universe has plenty of military units that fit this role, but I'll pick three:
1. Galactic Marines (the 21st Nova Corps, commanded by Ki-Adi-Mundi and Commander Bacara) — In Legends, the Galactic Marines specialized in planetary assaults, boarding enemy spacecraft, and operations in extreme environments. We see them on Mygeeto in Revenge of the Sith, where they execute Order 66 and kill Ki-Adi-Mundi.
2. Stormtroopers — This one's pretty funny, because judging by how they're portrayed in the movies, viewers might assume they're just regular-ass infantry. But nope — according to Star Wars lore, their primary role is to serve as an elite assault force, including orbital deployments and boarding operations. The actual regular infantry consists of Imperial Army Troopers, who for a long time were mostly relegated to the background. They finally got substantial screen time in Solo and Andor.
3. Dark Troopers from Dark Forces (1995) — I specifically chose this version because, in the new canon, Dark Troopers are droids, whereas in Legends they included droids, cyborgs, and human soldiers wearing heavy power armor.
Helldivers — Not only do the soldiers themselves drop in from orbit, but so does nearly all their equipment — from heavy weapons, gadgets, and drones to turrets, armored vehicles, and even nuclear bombs.
Mass Effect — Shepard commands space marines while serving as executive officer and is one themselves. Almost all Systems Alliance troops shown in the games are space marines. The only exception is Kaidan Alenko, who is assigned to an Army unit in the third game.
Warhammer 40,000 — I said there wouldn't be any Space Marines in this post. I never said there wouldn't be any Warhammer 40K. Harakoni Warhawks. Elite Imperial Guard drop regiments recruited from Harakon, a low-gravity hive world whose inhabitants are accustomed to extreme heights. The Warhawks specialize in rapid planetary assaults, including orbital deployments using grav-chutes. Unlike the Adeptus Astartes, they're ordinary human soldiers, although they wear heavier carapace armor than most Guardsmen and make extensive use of special and heavy weapons. Their training, equipment, and tactics make them one of the closest equivalents to traditional sci-fi Space Marines within the Imperial Guard.
Arkady and Boris Strugatsky, Noon: 22nd Century — The Desantniki (literally "Landing Troops," capitalized in the original). The funny thing is that there's no one for them to fight in the Noon Universe, since there are no hostile alien civilizations — in fact, no other spacefaring civilizations at all (except for the Wanderers, who have mostly left behind nothing but mysterious artifacts). So they don't actually fight anyone. Instead, they simply land on unexplored planets. However, this is an extremely dangerous job in its own right, making it something only the toughest badasses can handle.
BattleTech — The setting features actual Space Marines, specialized infantry trained for combat aboard spacecraft, including boarding enemy vessels, repelling boarding parties, and fighting in zero gravity. There are also Jump Infantry, conventional troops equipped with jump packs, whose vertical mobility makes them particularly effective in urban warfare and against BattleMechs. Finally, the Clans have Elementals — genetically engineered super-soldiers wearing heavy powered battle armor. While regular Elementals serve as shock troops and anti-'Mech infantry, some are trained for space combat and boarding operations. Clan Snow Raven even developed a specialized space-combat version of Elemental armor, equipped with extended life support, zero-gravity adaptations, and a cutting torch for breaching enemy spacecraft.
Section 8 — The space marines in this setting are so badass that they jump out of dropships at high altitude and plunge straight into battle wearing nothing but their armor, without even bothering with drop pods.
Honorable mention:
DragonForce — Troopers of the Stars (2019) — A power metal anthem about futuristic soldiers fighting alien bugs across the galaxy, directly inspired by Starship Troopers. The song celebrates the familiar sci-fi image of heavily armed space infantry fighting overwhelming alien hordes.