Described is an autoinjector (1) comprising a case (2) having a rib (2.9), a needle shroud (7) telescopically coupled to the case (2) and movable between a first extended position (EP), a retracted position (RP) and a locked second extended position (SEP), a carrier (8) slidably arranged in the case (2), adapted to hold a medicament container, and movable from a first axial position to a second axial position relative to the case (2), and a collar (16) rotatably and slidably disposed in the case (2) and coupled to the needle shroud (7) and the carrier (8). The collar (16) abuts the rib (2.9) when the needle shroud (7) is in the first extended position (EP) and the carrier (8) is in the first axial position, and the collar (16) disengages the rib (2.9) when the needle shroud (7) is in the retracted position (RP) and the carrier (8) is in the second axial position.