Anal swelling in dogs can be due to variety of factors. Your question would have been complete if you also report other signs of illnesses that your dog is having. Anyhow, anal swelling in dogs can be due to anal sac disease that includes
- Anal gland impaction
- Anal gland tumors
- Anal gland infection
- Anal gland abscess