The image forming apparatus includes an opening and closing device that can be opened or closed with respect to a main body of an image forming apparatus, a plurality of image forming devices, a recording material containing device which contains a recording material and which can be detachably mounted on the main body, and a positioning device which positions the opening and closing device in an open state. By this arrangement, the ability to detach the image forming devices is improved without increasing the dimensions of the apparatus.