This condition is an inflammation and swelling of the veins of the anus or rectum. Hemorrhoids may occur inside or outside the anus.