As you catch more Pokémon than you can carry (a maximum of six in your party), they will be automatically sent to the Pokémon Storage System, accessible via any PC in a Pokémon Center. You can deposit and withdraw Pokémon freely, allowing you to rotate your team and prepare for different challenges. Don't forget about your stored Pokémon; they might be exactly what you need for a tough Gym Leader!
