The story follows the player as they defeat Teams Aqua and Team Magma, crime groups who want to use Pokémon to change the weather in Hoenn. In Ruby, Team Magma, want to use the legendary Pokémon Groudon to dry up the oceans of Hoenn and increase the amount of land; in Sapphire, the Team Aqua are the villains and they try to Kyogre, to increase the Hoenn's water levels.