The invention relates to the technical field of cooking machines, in particular to a cooking machine. The cooking machine comprises a cooking bin, a shell, a pot body, a food feeding device, a food receiving device and a seasoning bin. The pot body is rotationally connected into the cooking bin, and a mounting cavity is formed between the shell and the cooking bin; the seasoning bin is arranged on the upper side of the cooking bin; the food feeding device e comprises a first driving mechanism, a food guide frame and a food distribution box, the food guide frame is rotationally connected to the interior of the cooking bin and located above the pot body, and the food distribution box is detachably connected with the food guide frame; and the food receiving device is arranged on the lower side of the cooking bin, a dish outlet suitable for the food receiving device to pass through is formed in the shell, and the food receiving device is provided with a first position for receiving dishes in the pot body and a second position for sending the dishes out of the shell. When food needs to be thrown, the food distribution box is connected with the food guide frame, thefood guide frame is driven by the first driving mechanism to throw the dishes, unnecessary risks caused by accidental touch of an external dish throwing mechanism can be avoided, and the space size of the automatic cooker can also be reduced.