An image forming apparatus which forms an image on a sheet, the image forming apparatus comprising: an apparatus main body of the image forming apparatus; an openable and closable member (12; 20) being supported on the apparatus main body in an openable and closable manner with respect to the apparatus main body, the openable and closable member (12; 20) including a receiving portion (17, 22); an image reading portion configured to read an image of an original, the image reading portion being supported on the apparatus main body and being movable to a first open position and to a first closed position with respect to the apparatus main body, the first closed position having a positional relationship with respect to the apparatus main body different from the first open position; and a stopper member (100; 200; 300) provided in the apparatus main body and configured to move in conjunction with a movement of the image reading portion, wherein the stopper member (100; 200; 300) is configured to move to a restricting position in which the stopper member (100; 200; 300) abuts against the receiving portion (17, 22) so as to restrict the openable and closable member (12; 20) from being moved from a second closed position to a second open position when the image reading portion is moved to the first closed position, when the image reading portion is in the first open position, the image reading portion is separated from the stopper member (100, 200, 300), and the stopper member (100; 200; 300) is configured to move to an allowing position in which the stopper member (100; 200; 300) separates from the receiving portion (17, 22) thereby bringing the openable and closable member to an openable state to allow the openable and closable member (12; 20) to be moved from the second closed position to the second open position when the image reading portion is moved to the first open position. an apparatus main body of the image forming apparatus; an openable and closable member (12; 20) being supported on the apparatus main body in an openable and closable manner with respect to the apparatus main body, the openable and closable member (12; 20) including a receiving portion (17, 22); an image reading portion configured to read an image of an original, the image reading portion being supported on the apparatus main body and being movable to a first open position and to a first closed position with respect to the apparatus main body, the first closed position having a positional relationship with respect to the apparatus main body different from the first open position; and a stopper member (100; 200; 300) provided in the apparatus main body and configured to move in conjunction with a movement of the image reading portion, wherein the stopper member (100; 200; 300) is configured to move to a restricting position in which the stopper member (100; 200; 300) abuts against the receiving portion (17, 22) so as to restrict the openable and closable member (12; 20) from being moved from a second closed position to a second open position when the image reading portion is moved to the first closed position, when the image reading portion is in the first open position, the image reading portion is separated from the stopper member (100, 200, 300), and the stopper member (100; 200; 300) is configured to move to an allowing position in which the stopper member (100; 200; 300) separates from the receiving portion (17, 22) thereby bringing the openable and closable member to an openable state to allow the openable and closable member (12; 20) to be moved from the second closed position to the second open position when the image reading portion is moved to the first open position.