Medications for anal fissures are used to treat relieve pain from anal fissures. They work by relaxing the smooth muscles in the anal sphincter, which helps to improve blood flow and promote healing. Nitrates like nitroglycerin (Rectiv) are usually applied topically as an ointment to help manage and heal your anal fissures effectively.