The invention discloses a hydrodynamic foaming system. The system comprises a water inlet mechanism, a liquid inlet mechanism, an air inlet mechanism, a hydrodynamic mixing box, a foaming pipe and a control mechanism; a water inlet and a liquid inlet are formed in the side wall or the top of the hydrodynamic mixing box; a liquid outlet is formed in the top of the hydrodynamic mixing box, the waterinlet is connected with a water outlet pipe of the water inlet mechanism, the liquid inlet is connected with a liquid outlet pipe of the liquid inlet mechanism, the liquid outlet is connected with aninlet of the foaming pipe through a connecting pipe, the connecting pipe further communicates with an air outlet pipe of the air inlet mechanism, and the control mechanism is connected with the waterinlet mechanism, the liquid inlet mechanism and the air inlet mechanism. A closestool and a foaming method are also disclosed. By adding the hydrodynamic mixing box, a foaming agent is injected in advance, and the use amount of the foaming agent is accurately controlled by logically controlling the working time of a liquid pump. The uniformly mixed foaming liquid is mixed with gas by utilizing the pushing force of water to finally generate foam, so that the application range is wide. The system is simple in structure, low in cost, intelligent in control and capable of rapidly generating foamand better meeting the requirements of customers.