Levitate

Evades Ground moves.

Full effect

This Pokémon is immune to Ground-type moves, Spikes, Toxic Spikes, and Arena Trap. This ability is disabled during Gravity or Ingrain, or while holding an Iron Ball. This ability is not disabled during Roost.

In game description

By floating in the air, the Pokémon receives full immunity to all Ground-type moves.

Pokemon with Levitate

Using Levitate in Cobblemon

Abilities are passive and always active, so Levitate costs you nothing to run. If it is marked hidden on a species above, expect it to be harder to obtain: servers differ in whether hidden abilities come from breeding, an Ability Patch, or events.

See the Pokedex for which abilities each species can have, and IVs, EVs and breeding for how to actually pass one down.