A machine for the production of products such as ice cream, frozen beverages or granita comprises a product-containing tank (12) which is provided with a tap (15) for dispensing the product. Inside the tank there projects from a rear wall (23) a cylinder (16) with a substantially horizontal axis (17) which forms the evaporator of a refrigerating circuit of the machine for cooling the product in the tank. A mixer element (18) is present around the cylinder and rotates coaxially with the axis (17) of the cylinder by means of a motor unit (19) connected to the mixer element (l8) via a drive shaft (20) which passes along the axis of the cylinder and which is connected to the mixer element (18) at one end of the cylinder which is opposite to the said rear wall (23). The motor unit (19) comprises a final reduction stage arranged in alignment with the axis of the cylinder, a motor arranged at an angle with respect to this axis and substantially parallel to the said rear wall and an angular drive between the final reduction stage and motor.