A machine for the homogenisation and thermal treatment of liquid and semi-liquid food products, for example ice creams, whipped cream, creams, chocolate, yogurt and the like, comprises a containment tank (2) for the mixture and a centrifugal pump (3) put in fluid communication with the bottom of the containment tank (2) for drawing mixture from the tank (2) and putting it back into the tank, heating and cooling means (4) acting at the pump (3) for heating and cooling the mixture in transit in the pump (3). The heating and cooling means (4) comprise a thermal machine with reversible thermodynamic cycle and using carbon dioxide as refrigerant.