In When Regions Collide!, Brock commanded his Geodude and Steelix to use Gyro Ball to deflect attacks, and mentioned that "a certain challenger of his" taught him to use a Pokémon's attack as a means of defense.
Drifblim uses Will-O-Wisp to surround its body in fire wisps. Then it uses Psychic to move the fire in two circles. Drifblim can either shoot the flames as an attack or keep the fire around it as a defense tactic.
Gastrodon uses Muddy Water to make a tornado made of water around it to avoid its opponent getting closer to it because it is slower. However, it will purposely leave an opening at the bottom of its body to entice opponents to strike there, so Gastrodon can counterattack in retaliation.