How about a reverse dungeon? It can be a dungeon that's been mostly cleared out beforehand, but once we reach the end it turns out there's a vital reason why we need to keep it out of the hands of other potential adventurers. We then need to go around fixing the trap machinery, adding barrier puzzles, bringing in denizens to guard the levels, and generally making life miserable for all who follow.