The invention relates to a valve (14), in particular a fuel-metering unit (15), comprising a valve cylinder (16), a valve
piston (17) which is movable within the valve cylinder (16) between a closed position and open position such that in the closed position the valve (14) is closed and in the open position the valve (14) is open, a resilient valve element (37), in particular a valve spring (38), which is connected to the valve
piston (17) and by means of which valve spring a force can be applied to the valve
piston (17) in the opposite direction to a force which can be applied by an
electromagnet (40) to the valve piston (17), such that the valve piston (17) can be moved between the closed position and the open position by means of the force applied by the resilient valve element (37) and the
electromagnet (40) to the valve piston (17), the
electromagnet (40) with a coil (41) for moving the valve piston (17), a movable armature (42), which is mechanically operatively connected to the valve piston (17), for moving the valve piston (17), a plastic housing (18) which is constructed radially outside the coil (41), wherein the plastic housing (18) is additionally constructed radially inside the coil (41).