An injection device comprising a medicament container, a needle attached to the container, and a mechanism for automatic penetration of the needle, injection of medicament and withdrawal of the needle. The device operates by initiating a penetration sequence, followed by an injection sequence and followed by a withdrawal sequence. A previous sequence can trigger a subsequent sequence. The device further comprises a dampening mechanism arranged and designed to dampen the movement of the injection mechanism during an injection sequence.