Stay calm and maintain your seat. Lean forward, keep weight in the stirrups, use gentle rein pressure, avoid yanking, speak calmly, keep your eyes forward, and dismount safely only if necessary. Seek help from a qualified trainer if rearing continues.