The invention relates to an autonomous mobile foam-producing unit for cleaning, said unit especially enabling the cleaning and sanitization of agricultural and cattle-breeding areas. The invention also enables a large quantity of foam to be produced rapidly and in such a way that it is ejected under high pressure, preventing a water hammer (Joukowsky). Furthermore, the invention is autonomous, comprising energy systems based on petrol or diesel engines that are able to be adapted for use with batteries and solar charging cells.