A machine for making both hot liquid food products and ice cream products, characterized in that it comprises: - a first chamber for processing a hot liquid product configured to receive a first basic heated liquid product and configured to house a second basic product in powder form to allow a contact between the first basic heated liquid product and the second basic product in powder form; - a dispensing unit, connectable to the outlet of the first processing chamber for dispensing the hot product; - a mixing and cooling unit for making an ice cream product, comprising a processing container and a stirrer mounted rotatably inside the container, the mixing and cooling unit being connectable to the outlet of the first processing chamber for receiving the hot liquid product defining a basic ingredient for making the ice cream product, - a thermal cooling system, associated with the mixing and cooling unit, further comprising means for switching the outlet of the first processing chamber, switchable between a first configuration wherein the outlet of the first processing chamber is operatively connected to the mixing and cooling unit, to allow hot product to be transferred into the processing container of the mixing and cooling unit, and a second configuration wherein the outlet of the first processing chamber is operatively connected to the first dispensing unit to allow the first dispenser to deliver hot product, wherein the means for switching the outlet of the first processing chamber comprise at least one valve, which can be activated for switching the configuration between the above-mentioned first configuration and second configuration. - a first chamber for processing a hot liquid product configured to receive a first basic heated liquid product and configured to house a second basic product in powder form to allow a contact between the first basic heated liquid product and the second basic product in powder form; - a dispensing unit, connectable to the outlet of the first processing chamber for dispensing the hot product; - a mixing and cooling unit for making an ice cream product, comprising a processing container and a stirrer mounted rotatably inside the container, the mixing and cooling unit being connectable to the outlet of the first processing chamber for receiving the hot liquid product defining a basic ingredient for making the ice cream product, - a thermal cooling system, associated with the mixing and cooling unit, further comprising means for switching the outlet of the first processing chamber, switchable between a first configuration wherein the outlet of the first processing chamber is operatively connected to the mixing and cooling unit, to allow hot product to be transferred into the processing container of the mixing and cooling unit, and a second configuration wherein the outlet of the first processing chamber is operatively connected to the first dispensing unit to allow the first dispenser to deliver hot product, wherein the means for switching the outlet of the first processing chamber comprise at least one valve, which can be activated for switching the configuration between the above-mentioned first configuration and second configuration.