Dogs are usually fasted for 8-12 hours before surgery to reduce the risk of vomiting during and after the procedure. Vomiting can be dangerous for dogs under anesthesia, as it can lead to aspiration pneumonia.
If your dog is scheduled to be neutered, please follow the instructions given to you by your veterinarian. This may include fasting your dog for a certain amount of time before surgery.