Dig is a contact making Ground-type move first introduced in Generation I as TM28. The Pokémon digs a hole, pops in it, and waits a single turn. The Pokémon will not get any status problems or take any damage (with the exception of certain moves like Earthquake). Outside of battle, it works similarly to the Escape Rope, taking the player outside of a cave. It is TM28 in all generations.
The user burrows, then attacks on the second turn. It can also be used to exit dungeons.