The invention discloses an epidemic prevention breathing machine with a sterilization function. The device comprises a platform deck, a body module, a functional module and a sterilization module. A multi-parameter monitor is arranged in the middle of the functional module; the functional module is positioned above the platform deck; a shell is arranged outside the functional module; the functional module is positioned at the top end inside the platform deck; a sterilization box is arranged on the left side of the sterilization module; the sterilization module is positioned below the platformdeck; the sterilization module comprises a sterilization box, a separation chamber, a chamber door, a through hole, a waste gas port, a water suction type vacuum pump, an exhaust pipe, a treatment pipe, a reaction tank, a liquid outlet, a protection cover, an ethylene oxide compression tank and a valve port; and the separation chamber is arranged at the right side of the sterilization box, and thetop of the separation chamber is provided with a waste gas port. According to the epidemic prevention breathing machine with the sterilization function, a user can conduct anesthesia while conductingauxiliary breathing on a patient, and the interior of a pipeline can also be effectively sterilized and disinfected.