The ability prevents the infatuation status as well as getting affected by gender-based moves like Captivate. If the Pokémon were to be infatuated (like with Mold Breaker), the ability will cure it while it is in battle. If the Pokémon is holding a Mental Herb, the item will be consumed before the ability activates. If the Pokémon is holding a Destiny Knot, the Destiny Knot activates before curing the Pokémon of infatuation.
In the sixth generation, the ability now protects against Taunt. If the Pokémon were to be taunted, the ability will cure it while it is in battle.