The idea of Harry Potter secretly marrying in 'Avengers' fanfics is such a wild crossover concept that it somehow works beautifully in the right hands. I've stumbled across a few fics where authors blend the magical world of Harry with the high-tech, superhero chaos of the Avengers, and the marriages are usually either a result of dimension-hopping, soulmate tropes, or some magical contract gone rogue. One memorable story had Harry accidentally bound to Tony Stark through an ancient spell during a botched experiment, and their 'secret marriage' became this hilarious yet heartwarming subplot where the Avengers slowly figured it out while Harry tried to keep it under wraps from the wizarding world. The tension between his loyalty to both worlds made for some great drama.
Another common setup is Harry being pulled into the Marvel universe post-war, often as a way to escape his past, and ending up in a marriage of convenience—or love—with someone like Loki or Steve Rogers. The secrecy usually stems from Harry's fear of his enemies finding him or the Avengers' distrust of magic at first. The best fics nail the character dynamics, like Harry's snark clashing with Tony's or his quiet resilience complementing Steve's idealism. It's a niche trope, but when done well, it feels like a natural extension of both universes. I love how creative fans get with the logistics, like using magical vows or SHIELD cover-ups to explain why no one knows.