A medicament delivery device is presented having an elongated housing extending in a longitudinal direction, which housing is arranged to accommodate a medicament container, an end cap arranged with a first attachment element designed to engage with a second attachment element on the housing for attaching the end cap to the housing, a rotator rotatably arranged inside the housing, an activator axially slidable with respect to the housing from an extended position to a retracted position and operably connected to the rotator such as to rotate the rotator from an initial non-activated rotational position and an activated rotational position when the activator is moved from the extended to the retracted position. The rotator further comprises a blocking element arranged to cooperate with the first attachment element for preventing disengagement of the first attachment element from the second attachment element when the rotator is in the activated rotational position.La présente invention concerne un dispositif d'injection automatique comprenant un boîtier allongé (10) s'étendant dans une direction longitudinale, lequel boîtier (10) est agencé pour recevoir un récipient de médicament (16), un capuchon d'extrémité (52) agencé avec un premier élément de fixation (98, 100) conçu pour venir en prise avec un second élément de fixation (102) sur ledit boîtier pour fixer ledit capuchon d'extrémité (52) audit boîtier (10), un élément de rotation (62) agencé de manière rotative à l'intérieur dudit boîtier (10), un activateur (32) pouvant coulisser axialement par rapport au logement depuis une position étendue vers une position rétractée et relié de manière opérationnelle audit élément de rotation (62) de manière à faire tourner ledit élément de rotation (62) à partir d'une position de rotation initiale non activée et d'une position de rotation activée lorsque l'activateur (32) est déplacé de la position étendue à la position rétractée, ledit élément de rotation (62) comprend en