Spaying of young cats is the best way to prevent pyometra: this is one of the reasons why spaying is recommended as a routine part of a wellness program for cats.