The invention provides an environment-friendly and energy-saving foam washing machine, including a washing device, a foam device and a controller, wherein the washing device includes a machine shell, an inner drum and a driving assembly; the foam device includes a tank body, an air inlet pipe, a feeding pipe, an exhaust pipe, a foam discharging pipe, a waste discharging pipe, a stirring and cleaning device and a plurality of control valves; and the controller is used for controlling on-off of the control valves and further used for controlling on-off of the driving assembly. The foam device can generate abundant foam and convey the foam into the washing device through a foam conveying pipe, the washing device conducts washing through the foam generated by the foam device, and water consumed for washing and softening of jeans wear can be greatly reduced. In addition, parts in the foam device and the washing device are controlled through the controller, and the effect of intelligent control is achieved. The environment-friendly and energy-saving foam washing machine has the advantages of low cost, energy conservation, less water and less solid waste.