If you gain control of the enchanted creature, Dead Man's Chest will be put into your graveyard.

Artwork
Loading artwork…
Dead Man's Chest
Forgotten Realms Commander · #97 · EN
Nonfoil—Foil—
Card rules
Enchant creature an opponent controls
When enchanted creature dies, exile cards equal to its power from the top of its owner's library. You may cast spells from among those cards for as long as they remain exiled, and mana of any type can be spent to cast them.
Rare · Illustrated by Jason A. Engle
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
To determine how many cards to exile, use the enchanted creature's power as it last existed on the battlefield.
You are a creature's owner if the card representing it began the game in your deck, or if it's a token that entered the battlefield under your control. If Dead Man's Chest enchants a creature that you own but an opponent controls, you'll exile cards from your library.
The effect of Dead Man's Chest doesn't change when you can cast the exiled cards. For example, if you exile a creature card without flash, you can cast it only during your main phase when the stack is empty.
Casting an exiled card causes it to leave exile. You can't cast it multiple times.
If Dead Man's Chest and the enchanted creature are both put into graveyards at the same time, the last ability of Dead Man's Chest still triggers.
In a multiplayer game, if a player leaves the game, all cards that player owns leave as well. If you leave the game, any spells or permanents you control from Dead Man's Chest's ability are exiled.