In my first 5E campaign, the players eventually faced Lolth in the Demonwebs. Using a magical Lanthorne artifact, they forced her to flee, severely crippling her power.
In my latest 5E campaign, we're running Vecna: Eve of Ruin, where they'll face off against the God of Secrets himself.