An image forming apparatus has a main casing including an opening provided at an upper portion of the main casing, a process cartridge attachable to the main casing through the opening, and a top cover movable between an open position where the top cover opens the opening and a close position where the top cover closes the opening. The process cartridge includes a photosensitive drum and a memory provided with a first electrical contact. The top cover supports an LED head configured to emit light to expose the photosensitive drum, and a second electrical contact electrically connected to the first electrical contact in a state where the process cartridge is attached to the main casing and in a state where the top cover is positioned at the close position.