the invention relates to a device for encapsulating a component with plastic material , comprising at least two tool parts , which in a closed arrangement for encapsulating the component form a receptacle for the component , an injection channel for supplying the liquefied plastic material to the region of the receptacle , and a single retaining element for positioning the component in the receptacle , wherein the retaining element can be moved in a first position for positioning the component in the receptacle and in a second position for preferably completely encapsulating the component with the plastic material . according to the invention , the retaining element holds the component in the region of the receptacle by means of form positive and / or clamping engagement .