The image forming apparatus of this invention comprises: an image bearing
member bearing a toner image to be transferred to a recording material; a
unit including the image bearing member and capable of being pulled out
from an apparatus main body; a transfer member which contacts the image
bearing member and transfers the toner image on the image bearing member
onto the recording material; an opening/closing member including the
transfer member and capable of being opened and closed with respect to
the apparatus main body; a first locking means which locks the unit to
the apparatus main body; and a second locking means which locks the
opening/closing member in a closed state; wherein the second locking
means is released in conjunction with the releasing operation of the
first locking means.