It makes a hole in a suitable rock. If that rock breaks, the Pokémon remains agitated until it locates a replacement.
When it finds a stone of a suitable size, it secretes a liquid from its mouth to open up a hole to crawl into.
The Pokémon Company International is not responsible for the content of any linked website that is not operated by The Pokémon Company International. Please note that these websites' privacy policies and security practices may differ from the Pokémon Company International's standards.