A nuclear reactor is a device used to initiate and control a sustained nuclear chain reaction. Reactors are primarily used for generating electricity, but they also have applications in research and medicine. The reactors generate heat through the process of nuclear fission, which is then used to produce steam and drive turbines for electricity production.