Stockpile is a status Normal-type move.
Stockpile stores up energy for the user and raises the user's Defense stat and Special Defense stat by one stage each. The maximum number of Stockpiles the user can hold is three. If used after the third count, it will fail.
If Spit Up is used after Stockpiling, it will inflict damage according to the number of times Stockpile was used, and the Stockpile count will be reset. If Swallow is used after Stockpiling, the user will heal HP according to the number of times Stockpile was used, and the Stockpile count will be reset.
Both Spit Up and Swallow will fail if Stockpile has not been used before selecting.
Once the user has used Spit Up or Swallow, the increase in Defense and Special Defense are lost.
Pokémon that learn Stockpile
By leveling up