The anal swelling that occurs in late pregnancy may be caused by the enlargement of the fetus and the pressure of the uterus on the rectum, or in late pregnancy, due to the obstruction of the inferior vena cava reflux, which can easily lead to the occurrence of hemorrhoids and constipation, which can also easily lead to anal swelling. In this case, you should pay attention not to stand for a long time, or sit for a long time, which will compress the rectum and cause the symptoms of anal swelling to worsen. You should try to rest in bed, eat more fresh fruits and vegetables, drink more water, keep your bowels open, and pay attention to keeping the area dry and clean to prevent inflammatory infections. You need to pay attention to your diet and not to eat spicy and stimulating food.