The invention discloses an oxygenator. The oxygenator comprises a pump body. A center body is arranged in the pump body, a regulating valve is sleeved with the center body, the left end and the right end of the regulating valve are connected with pistons respectively, closed air chambers are formed between the outer side walls of the pistons and diaphragm leaves arranged on the center body, output air chambers are formed between the diaphragm leaves and the pump body, ventilation cavities are formed between the inner side walls of the pistons and the center body and communicated with an exhaust passage in the pump body, the bottom of the pump body is provided with an air outflow tee joint communicated with the output air chambers, the top of the pump body is provided with an air inflow tee joint communicated with the output air chambers, air inflow valves and air outflow valves are arranged in the pump body, the air inflow valve are arranged at the joints of the air inflow tee joint and the output air chambers, and the air outflow valves are arranged at the joints of the air outflow tee joint and the output air chambers.