The invention relates to a method for producing a solenoid valve, in particular a fuel injection valve, wherein the solenoid valve has a sleeve, a valve needle, which is arranged inside the sleeve in a radial direction and guided in a displaceable manner, a magnetic coil, which is arranged outside the sleeve in a radial direction, a magnetic core, which is arranged inside the sleeve in a radial direction, and a magnetic armature, which is arranged inside the sleeve in a radial direction, axially opposite the magnetic core, wherein the magnetic armature is arranged on the valve needle, wherein the sleeve has a smaller wall thickness in a thin-walled region arranged between the magnetic armature and the magnetic coil, wherein the thin-walled region is reinforced by means of a reinforcement element to absorb radial forces, wherein the method has a method step in which the reinforcement element is applied to the sleeve in the radial direction outside the sleeve in the thin-walled region by means of a melt bath spraying method or by means of a cold gas spraying method during the method step.