An image forming apparatus includes a cartridge including an
electrophotographic photosensitive member, a developing roller, a spacer
movable between spacing and contacting positions for spacing apart and
contacting the roller and member, and a receiver receiving a force
spacing the roller from the member. The apparatus includes a mounter
detachably mounting the cartridge, an abuter retracting the spacer from
the spaced position when the mounter mounts the cartridge with the spacer
at the spaced position, and a function member movable between a first
position spacing the roller from the member by abutting the receiver with
the cartridge mounted to the mounter and a second position contacting the
roller to the member. When the mounter mounts the cartridge with the
spacer at the spaced position, the abuter abuts the spacer retracting it
from the spaced position after insertion so that the function member
taking the first position abuts the receiver.