The swelling and pain in the upper right temple may be caused by physiological factors such as overwork and mental tension, or it may be caused by migraine and high blood pressure. 1. Physiological factors: If you have been overworked recently due to work or study, or if you have been in a state of mental tension for a long period of time, it will cause you to have a headache, and you may have a swelling and pain in the upper right temple. 2. Migraine: Migraine is a kind of recurring head pain on the side of the head, the cause of which is related to heredity, nerve cell excitability disorders, endocrine and metabolic factors, etc. The patient will have headaches, mostly on the side of the head, and the nature of the pain can be distending pain, throbbing pain and so on. 3. Hypertension: Hypertension means that the pressure of flowing blood on the walls of blood vessels is persistently higher than normal, the cause of which is not yet clear, mostly related to heredity, age and poor lifestyle, and secondly, it may also be caused by other secondary diseases, and the patient will have headache, fatigue, palpitations and other symptoms, and may have swelling and pain on the right upper temple. There are many causes of right upper temple swelling and pain, and it is recommended that patients consult a doctor in time for a clear diagnosis and active treatment.