Abstract: The present invention relates to an oven, including a box body, a middle spacer, a second heating module, a first heating module, a first door body, a second door body, a detection device, and a controller. The box body has a cooking cavity. The middle spacer is vertically arranged in a middle of the cooking cavity, and is detachably and fixedly connected to the box body, to selectively divide the cooking cavity into a first small cavity and a second small cavity. The second heating module and the first heating module can work independently of each other. The detection device is arranged in the box body or the middle spacer and is configured to detect whether the middle spacer is mounted in place and to generate a corresponding detection signal. The controller is arranged in the box body.