Dogs have two anal glands that are located on opposite sides of the anus. Usually the anal glands empty naturally when dogs defecate. However, sometimes anal glands can become impacted, infected and sometimes rupture. This can cause mild discomfort and scooting. This condition is painful and the glands can be slow to heal. In non-infected mild cases, first aid can be used to relieve the impacted anal glands. In severe cases of anal gland impaction, dogs can develop infected and painful anal glands seen as severe reddening, discharge, and intense pain near the anal region requiring immediate veterinary attention.