A neutron star is what is left over from the gravitational collapse of a massive star, during a Type II, Type IIb or Type Ic supernova event. These stars are mostly made of neutrons. Neutrons stars are extremely hot. They don't collapse further because of the Pauli Exclusion principle, which states that no two neutrons can occupy the same quantum state simultaneously.