Common causes include irritation due to chemicals or fragrances in soaps and detergents; consumption and passing of spicy foods, coffee, and dairy products; infection, such as a yeast infection or sexually transmitted infection; and hemorrhoids.