This utility model relates to the field of oven technology, specifically an oven with an automatic protection function. The purpose of this oven is to address certain safety hazards present in existing ovens during use. For example, the lack of effective protective measures makes it easy for children to accidentally open the oven, leading to burns and other accidents. Therefore, this invention enhances the oven's efficiency and effectiveness. The oven includes a main body and a door. The front of the main body is hinged to the bottom area of the corresponding door. The top areas of the left and right ends of the door are connected to the main body via a protective mechanism. The protective mechanism further includes a rotating shaft, rotating plates, connecting plates, fixing posts, and blocking rods. The side walls of the left and right ends of the oven body are rotatably connected to the corresponding rotating shaft. The outer side of the rotating shaft is fixedly connected to one side of the corresponding rotating plate. The two sets of rotating plates and side walls are fixedly connected to the corresponding connecting plates.