A device (10) for dispensing a dental material comprises a nozzle head (12), a hand piece (14) and a locking mechanism (16) for locking the nozzle head (12) and the hand piece (14). The locking mechanism (16) comprises a snap connection (30) and a screw connection(32). The locking mechanism (16) is operable between: (iv) a locked position in which the snap connection (30) is engaged for retaining the nozzle head (12) and the hand piece (14) with each other and in which the screw connection (32) is disengaged (v) a secured position in which the snap connection (30) is disengaged and in which the screw connection (32) is engaged for retaining the nozzle head (12) and the hand piece (14) with each other (vi) a released position in which the snap connection (30) and the screw connection (32) are disengaged.