The invention discloses an automatic cooker having a lampblack treating function and belongs to the technical field of cooking devices. The automatic cooker having the lampblack treating function comprises a box body, wherein the box body comprises a base plate, a back plate and side plates, the back plate and the side plates are vertically and fixedly connected to the top of the base plate, a heating chassis is arranged on the base plate, a rotary shaft is connected to the base plate through supporting blocks, the rotary shaft located between the supporting blocks is fixed sleeved with a supporting plate, the supporting plate is fixedly connected with a lantern ring through a supporting rod, the lantern ring is located at the top end of the supporting rod, the central position of the supporting plate is fixedly connected with a connecting column, the supporting plate is fixedly connected with a cooker body through the connecting column, the cooker body is located in the lantern ring,a material inlet box is connected to the top of one side plate, the end, arranged in the box body, of the material inlet box is located at the upper end of the cooker body, and the cooker body is in sealed connection with a cooker cover. The automatic cooker is convenient to operate, collects lampblack produced in the cooking process, uses the lampblack as a heat source for heating and achieves effective lampblack treatment and utilization.