Pyometra is a life-threatening uterine infection in intact female dogs, and spaying is the definitive prevention and treatment.
Closed pyometra is extremely painful and rapidly progresses to sepsis and death without surgery. Dogs brought to emergency with advanced pyometra have often been quietly ill for days with pain owners interpreted as normal aging. Spaying eliminates this risk entirely and removes the possibility of uterine cancer as well.