A core damage accident is caused by the loss of sufficient cooling for the nuclear fuel within the reactor core.
The containment building is the last of several safeguards that prevent the release of radioactivity to the environment.