The image forming apparatus includes a movable image bearing member, a charging
member opposed to the image bearing member in a charging portion, a transfer member
for transferring an image formed on the image bearing member to a transferred member,
and a cleaning mode for applying a voltage to the transfer member, and when other
area on the image bearing member differing from a surface potential changing area
on the image bearing member which is changed in surface potential by the application
of this voltage is located in the charging portion, applying a voltage to the charging
member, thereby cleaning the transfer member and the charging member. Thereby,
the cleaning of the charging member can be effected well.