Prestige
Prestige resets coins, resources, mines, pickaxe and upgrades, but grants prestige points and permanent bonuses.

When available
Prestige unlocks after Deep Caves. The ritual is performed by NPC Notch on spawn. Before resetting, the game will show you how many points you will receive.
Points prestige depend on time, coins, depth of mines and number of crafts. The further you go, the more points you get - but the cap also grows with each level.
What is saved
Crystals, Sparks, upgrade points, achievements, cosmetics and purchased cases remain. Coins, resources, mine progress, pickaxe and upgrade levels are reset.
Points prestige are spent in the prestige store on permanent multipliers CPS, coins, resources and points, as well as perks like night vision and additional slots.
Elevation
After Mushroom Island, ascension becomes available: it costs 50,000 points, resets prestige points and gives a permanent +20% to coins, resources and CPS per level. Details are on the Ascension page.