The swelling and pain under the heart socket may be caused by heart disease, digestive system disease and other reasons. 1. Heart disease: common heart diseases such as angina pectoris, myocardial infarction, etc. will appear under the heart swelling and pain symptoms. Symptoms such as profuse sweating and a sense of impending death may also occur. Angina can be relieved through the use of drugs such as nitroglycerin; myocardial infarction can be relieved through thrombolysis and surgical removal of thrombus. 2. Digestive system diseases: Common digestive system diseases such as gastroesophageal reflux disease (GERD), pancreatitis, etc. can cause pain and swelling under the heart. Gastroesophageal reflux disease can cause acid reflux and heartburn, which can be relieved by the use of omeprazole and ranitidine, etc. Pancreatitis can also cause nausea and vomiting, which can be relieved by the use of growth hormone and dietary restrictions, etc. The patient should go to the hospital as soon as possible. Patients should go to the hospital as soon as possible, complete the relevant examinations such as gastroscopy, electrocardiogram, etc., so as to clarify the cause of the disease. The above mentioned drugs should be taken under the guidance of a professional doctor and should not be taken without authorization.