Hard lumps on the right side of the anus and pain are caused by perianal diseases, including hemorrhoids and perianal abscesses, etc. The most common cause of hemorrhoids is the formation of vein clusters or thrombi around the anus, which are often wrapped in the skin and thus have a hard texture. They are mainly caused by varicose veins around the anus, and are associated with poor dietary habits and a sedentary and sedentary lifestyle. In addition, perianal abscesses can also form abscesses or hard lumps around the anus and cause significant itching and pain, mainly as a result of the spread of anal gland infections to the perianal skin and the formation of a special fistula between the end of the rectum and the perianal skin, resulting in pus or intestinal fluids seeping out of the anus and pooling in the perianal area to form an abscess-like tissue.