A nuclear reactor is a device that initiates and controls a sustained nuclear chain reaction, primarily used for generating electricity. It operates by harnessing the energy released from the fission of nuclear fuel, usually uranium-235 or plutonium-239, to produce steam that drives turbines for power generation. The development and use of nuclear reactors have significantly influenced energy production and political dynamics in the 20th century.