Spaying is a surgical procedure that removes the ovaries and uterus of a female dog. This is typically done when the dog is between six and nine months old. Dog owners usually get their dogs spayed to prevent them from having puppies. Spaying can also help to reduce the risk of certain health problems in dogs, such as breast cancer and uterine infections. It can also help to reduce problem behaviors, such as roaming and urine marking.