Reschedule your flight to give you enough time to recover if you have a cold or are experiencing allergies, especially if your ear pain tends to be severe.
Take a decongestant tablet, spray or antihistamine to treat cold or allergy symptoms and relieve related ear pain. Allow enough time for the medicine to take effect before takeoff. Taking the medicine half an hour in advance should be sufficient. If you are uncertain, consult your doctor.
Open your jaw wide until it "pops" during takeoff and landing.
Chew gum and drink juice throughout the flight. The more you swallow, the more the muscles are activated that help open your Eustachian tube.