Ash and his friends soon find a large area of the canyon where many people, including Gary, are digging. However, they also stumble across Team Rocket, who accidentally reveals their plan to blow up the canyon and steal all of the Fossils. Misty and Brock run off to alert everyone to the danger, while Ash agrees to handle Team Rocket. As Meowth lights the fuse, Ash runs up to Team Rocket and sends out Squirtle in an attempt to put the flame out. Squirtle, Pikachu, and Ash chase the fuse, trying to put it out, but Squirtle’s Water Gun keeps missing the flame while Team Rocket try to stop him. Team Rocket then falls and starts rolling, resulting in a ball of people and Pokémon rolling into Ash, landing right beside the dynamite. As the fuse draws near to the dynamite, Pikachu panics and uses Thunder Shock, causing the dynamite to detonate. The blast opens up a giant fissure in the ground, which disturbed rocks soon fill. Ash and Team Rocket are now trapped in an underground cave, with only Squirtle escaping from the rubble. Hearing the explosion, Misty and Brock run over and start digging out rock and soil with Squirtle.
(Source: Bulbapedia)