A dose setting mechanism having a locking mechanism for preventing selection of a dose in a drug delivery device is disclosed. The dose setting mechanism includes a locking mechanism that prevents movement of the dose setting mechanism. When a correct cartridge is inserted into the drug delivery device, the locking mechanism unlocks so as to allow movement of the dose setting mechanism. In one arrangement, the locking mechanism prevents rotation of the dose setting mechanism.