The image forming apparatus of the present invention has an apparatus main body including a link mechanism that an opening and closing member contacts, and a regulating portion regulating the movement of a shutter, and when the opening and closing member is further pushed in a closing direction at the time when the shutter is located at a second position, the link mechanism allows to move the opening and closing member in the closing direction while keeping a position of the shutter maintains at the second position by the regulating portion.