The Warp core ejection system is a system about warp capable vessels designed to eject the warp core in the event of an emergency to prevent the destruction of the ship.
Activation of the ejection system requiers security clearance by the Chief Engineer or a senior officer.
It is a running joke in Star Trek that the warp core ejection system almost never works, except in "Day of Honor".