For pain even when walking in the anus, the common problem may be hemorrhoids or it may be because of perianal abscess, it is recommended to clean the area with special medication and if necessary, go to the hospital for further treatment. However, if the pain is very severe and has been in this condition for a long time, it is most likely due to bacterial infection or anal fissure, and you need to go to the anorectal department of a hospital for further diagnosis in a timely manner. Pain caused by bacterial infection can be treated well with anti-inflammatory drugs and other topical medications. It is also related to dietary habits and it is recommended to abstain from eating if necessary. It is also possible to have skin irritation caused by prolonged sitting or clothing fabric problems. For anal fissures that are not very serious, buy your own ointment or wait for them to heal on their own. If it is very serious, it is recommended to go to the hospital for further treatment.