Q: I’ve dealt with migraine attacks for years. I typically manage by using over-the-counter pain medication that includes caffeine as soon as my symptoms begin. Then, if my migraine doesn’t improve, I use a prescription triptan medication. But my headaches have been increasing, and my doctor suggested I try a preventive migraine medication. Can you explain more about medication?

A: Migraine is a neurologic disorder. The severe pain of migraine typically occurs on one side of the head but may be on both sides. Symptoms also may include nausea, vomiting, sensitivity to light and sound, difficulty speaking, or visual disturbances known as aura with flashes of light or blind spots. Attacks may last hours or days, and they can make daily activities difficult.

Migraine is common, especially in women. It’s also hereditary. Migraine attacks can be triggered by multiple causes, from weather to wine. Lifestyle changes and treatment options can help you manage migraines.

Migraine treatment consists of preventive and acute therapy. Preventive therapy involves a medication people take regularly to reduce the frequency and severity of headache. Acute therapy is the medication people take as migraine attacks arise.

Calcitonin gene- related peptide, or CGRP, is targeted with newer medications. The protein CGRP exists in several body systems, including the brain and nervous system. It’s involved in transmission of pain signals, the dilation of blood vessels and some inflammation-like responses. Studies show that CGRP plays a role in causing the pain of migraine-related symptoms.

CGRP treatments help prevent or reduce migraine attacks by stopping CGRP from doing its job of dilating brain blood vessels and signaling pain.

Evidence suggests that CGRP-targeting therapies are more tolerable with fewer side effects and can be as effective than traditional first-line oral medications, including topiramate, beta blockers such as propranolol, or amitriptyline.

Real-world studies also reported CGRP-targeting therapies can be effective in achieving 50% reduction in monthly headache days even if patients previously have tried multiple migraine preventive medications.

There are two types of CGRP medications.

CGRP monoclonal antibodies: Used as migraine prevention, these antibodies attach to the CGRP protein and neutralize them directly. By doing so, they can decrease the frequency and severity of migraine. These medications include erenumab, galcanezumab, fremanezumab and eptinezumab.

People also can use another as-needed medication for acute treatment of headache, meaning they take the drug when they experience a migraine attack.

CGRP receptor antagonists: Used primarily to treat acute migraine attacks, these drugs prevent CGRP from binding to receptors and triggering the pain and other symptoms of a migraine. These include ubrogepant, rimegepant, atogepant and zavegepant. Atogepant and rimegepant also can be used for migraine prevention.

What works for one patient will not necessarily be appropriate for another. Some medications are not safe during pregnancy. Discuss with your health care provider the risk of medication-overuse headaches that can occur.

Remember, nonmedication measures also can help people cope with migraine, including:

Maintain regular healthy habits of eating, sleeping and exercising.

Relax in a dark, quiet room.

Apply hot or cold packs to the neck or head.

Try a small amount of caffeine.

Manage stress.

— Chia-Chun Chiang, M.D., Neurology, Mayo Clinic, Rochester, Minnesota

Mayo Clinic Q&A is an educational resource and doesn’t replace regular medical care. Email a question to MayoClinicQ&A@mayo.edu.