Abstract: In a solenoid valve having a magnetic drive including a housing which is at least partly formed from an injection molding compound, the magnetic drive includes a magnet coil having a winding, a magnet yoke, and a movably mounted magnet armature which is arranged outside the magnet coil. The housing has a first section which encloses the magnet coil having the winding and the magnet yoke, and the housing has a second section which encloses at least most of the movably mounted magnet armature. Further proposed are a battery having a plurality of solenoid valves, a method of manufacturing a solenoid valve, and a mold.