An image forming apparatus include a door through which a tray carrying a cartridge passes. In a door closing operation, (i) movement of the tray from a movable position to an image forming position, (ii) movement of a drive transmission member, for transmitting a driving force to the cartridge from a main assembly, from a first spacing position to a drive-connecting position, (iii) movement of an urging member for urging the cartridge to the main assembly from a second spacing position to a contact position, and (iv) movement of an electric energy supply member, for supplying electric power to the cartridge from the main assembly, from a third spacing position to an electric energy supplying position, are carried out in the order named.