When a dying star is too massive to leave behind a white dwarf and not massive enough to leave behind a black hole, you get a neutron star (sometimes a pulsar). It's a very compact clump of neutrons surrounded by a very strong magnetic field. These things are crazy!!