The question needs one detail before it can be answered properly: which game? There are well over twenty Pokémon titles, and "Buried Relic" is a dungeon name rather than something that appears across the whole series.
Buried Relic belongs to the Pokémon Mystery Dungeon games. If that's the one you mean, progress after clearing it is story-driven: head back to town, check the dungeon board or Wonder Mail listings, and follow whatever the next story event points you to, since the following dungeon is unlocked by the plot rather than by a fixed exit.
Name the specific game and version and you'll get a precise answer instead of a general one.