Hemorrhoids can become very painful and uncomfortable. If they do not respond to other treatments, such as over-the-counter medications or dietary changes, a hemorrhoidectomy may be necessary.