Revive in town
The free town option unlocks 5 seconds after death and returns you to your last safe town.
Revive in the wild
The wild option unlocks 60 seconds after death and costs 100 gold. A death inside a dungeon returns you to the outdoor location before that dungeon.