An emergency core cooling system (ECCS) is a safety feature in nuclear reactors designed to protect the reactor core from overheating during an emergency situation, such as a loss of coolant accident. The ECCS functions by providing a rapid injection of coolant to maintain core temperature and pressure within safe limits, ensuring that the reactor can be safely shut down and preventing the release of radioactive materials.