Explanation
"Attract" means to draw or pull something closer, so its antonym must mean to push or drive away. "Repel" directly means to force something to move away or resist attraction, making it the correct opposite. The other options, "Demote" (lower in rank) and "Expel" (force to leave), are not direct antonyms of "Attract."