A machine for the homogenization and thermal treatment of liquid and semi-liquid food products comprises, in combination:a tank for containing the food productselectric first heating means, operating on the food product to heat it and so thermally treat ita heating plant with thermodynamic cycle comprising at least a first heat exchangersecond heating means comprising said first heat exchanger, operating on the food product to heat it and so thermally treat it.