An image forming apparatus comprising: a toner replenishing portion; a waste toner collecting portion; and a toner container configured to be attachable to and detachable from the toner replenishing portion and the waste toner collecting portion, wherein the toner container includes: a first lever configured to be switchable between a first position and a second position; and a second lever configured to be switchable between a third position and a fourth position, the toner replenishing portion includes: a first actuating portion configured to, during a process in which the toner container is attached to the toner replenishing portion, act on the toner container in which the first lever is disposed at the second position and prohibit an attachment of the toner container; and a second actuating portion configured to, during the process in which the toner container is attached to the toner replenishing portion, act on the second lever disposed at the third position and switch the second lever to the fourth position, and the waste toner collecting portion includes: a third actuating portion configured to, during a process in which the toner container is attached to the waste toner collecting portion, act on the second lever disposed at the third position and prohibit an attachment of the toner container; and a fourth actuating portion configured to, during the process in which the toner container is attached to the waste toner collecting portion, act on the first lever disposed at the first position and switch the first lever to the second position. a toner replenishing portion; a waste toner collecting portion; and a toner container configured to be attachable to and detachable from the toner replenishing portion and the waste toner collecting portion, wherein the toner container includes: a first lever configured to be switchable between a first position and a second position; and a second lever configured to be switchable between a third position and a fourth position, a first lever configured to be switchable between a first position and a second position; and a second lever configured to be switchable between a third position and a fourth position, the toner replenishing portion includes: a first actuating portion configured to, during a process in which the toner container is attached to the toner replenishing portion, act on the toner container in which the first lever is disposed at the second position and prohibit an attachment of the toner container; and a second actuating portion configured to, during the process in which the toner container is attached to the toner replenishing portion, act on the second lever disposed at the third position and switch the second lever to the fourth position, and a first actuating portion configured to, during a process in which the toner container is attached to the toner replenishing portion, act on the toner container in which the first lever is disposed at the second position and prohibit an attachment of the toner container; and a second actuating portion configured to, during the process in which the toner container is attached to the toner replenishing portion, act on the second lever disposed at the third position and switch the second lever to the fourth position, and the waste toner collecting portion includes: a third actuating portion configured to, during a process in which the toner container is attached to the waste toner collecting portion, act on the second lever disposed at the third position and prohibit an attachment of the toner container; and a fourth actuating portion configured to, during the process in which the toner container is attached to the waste toner collecting portion, act on the first lever disposed at the first position and switch the first lever to the second position. a third actuating portion configured to, during a process in which the toner container is attached to the waste toner collecting portion, act on the second lever disposed at the third position and prohibit an attachment of the toner container; and a fourth actuating portion configured to, during the process in which the toner container is attached to the waste toner collecting portion, act on the first lever disposed at the first position and switch the first lever to the second position.