In a nuclear reactor the uranium fuel is assembled in such a way that a controlled fission chain reaction can be achieved. The heat created by splitting the U-235 atoms is then used to make steam which spins a turbine to drive a generator, producing electricity.