An image forming apparatus includes: a process cartridge that is provided
in the image forming apparatus to be removable from the image forming
apparatus along an attachment-and-detachment path; a first pressing
member that is provided to be movable bi-directionally in an advancing
direction advancing to the attachment-and-detachment path and in a
receding direction receding from the attachment-and-detachment path, the
first pressing member being configured to press the process cartridge
toward an attachment direction in which the process cartridge is attached
in a first state in which the first pressing member is moved toward the
advancing direction, and to enable detachment of the process cartridge in
a second state in which the first pressing member is moved toward the
receding direction.