* Attain means to achieve or succeed in getting something.
* Refrain means to stop oneself from doing something.
Here's an example:
* Attain: She attained her goal of becoming a doctor.
* Refrain: He tried to refrain from eating sweets, but he couldn't resist.
However, it's important to note that "refrain" can also mean to stop doing something. In this case, the opposite might be continue or persist.
For example:
* Refrain: The singer refrained from performing the song after the technical difficulties.
* Continue: Despite the cold, they continued their hike.
So, while "attain" and "refrain" are generally opposites, the exact opposite of "refrain" depends on the specific context.