During the formation of neutron stars, or in radioactive isotopes capable of electron capture, neutrons are created by electron capture:
This is similar to the inverse beta reaction in that a proton is changed to a neutron, but is induced by the capture of an electron instead of an antineutrino.