An image forming apparatus including a plurality of image bearing members,
an electrostatic image forming device for forming an electrostatic image
on the image bearing members, a plurality of developing devices for
developing as developer images the electrostatic images formed on the
plurality of image bearing members by using developer charged to a
predetermined polarity, a primary transferring device for primarily
transferring the developer images borne by the plurality of image bearing
members to an intermediate transfer member at a plurality of primary
transfer portions, a secondary transferring device for secondarily
transferring the developer images primarily transferred to the
intermediate transfer member to a recording material at a secondary
transfer portion, a cleaning device for cleaning the developer on the
intermediate transfer member, and a controlling device for, when a
secondary untransferred developer image, which is a developer image that
has not been secondarily transferred after the primary transfer, is
cleaned from the intermediate transfer member, variably controlling a
cleaning condition of the cleaning device in accordance with one of an
image ratio and a position of the secondary untransferred developer
image.