What process causes the material inside a collapsing stellar core to turn into a sea of neutrons?

Answer

Protons and electrons are forced to combine

When the pressure becomes sufficient to overcome electron degeneracy resistance, the protons and electrons combine, fundamentally transforming the core material into neutrons.

What process causes the material inside a collapsing stellar core to turn into a sea of neutrons?
starsupernovaneutron starblack holeremnant