Technical/Hidden Machine

Effects

Attract causes Pokémon of the opposite gender to become infatuated. Infatuated Pokémon have a 50% chance of being immobilized by love each turn and unable to attack.

Attract will fail on Pokémon of the same gender, genderless Pokémon and those with the ability Oblivious. Mew and Cryogonal can learn Attract via TM despite being genderless, however, the move will have no effect.

Z-Move effects

When a Pokémon is holding Normalium Z and uses its Z-Power, Attract turns into Z-Attract and eliminates any stat drops applied to the user, in addition to its usual effect as above.

Move target

Foe

Foe

Foe

User

Ally

Ally

Targets a single adjacent Pokemon.

Game descriptions

Gold/SilverCrystal

Makes the opposite gender infatuated.

Ruby/SapphireEmerald

Makes the opposite gender less likely to attack.

FireRed/LeafGreen

If it is the other gender, the foe is made infatuated and unlikely to attack.

Diamond/PearlPlatinumHeartGold/SoulSilver

If it is the opposite gender of the user, the foe becomes infatuated and less likely to attack.

Black/WhiteBlack 2/White 2

If it is the opposite gender of the user, the target becomes infatuated and less likely to attack.

X/YO.Ruby/A.Sapphire

If it is the opposite gender of the user, the target becomes infatuated and less likely to attack.

Sun/Moon

If it is the opposite gender of the user, the target becomes infatuated and less likely to attack.

Learnt by level up

These Pokémon learn Attract at the level specified. The numbers given are for
Pokémon Sun & Moon and may vary in other games; check the respective Pokédex pages for details.