The first nuclear reactors were used to generate plutonium for nuclear weapons.
Nuclear reactors are essentially large kettles that boil water. Uranium and plutonium fission (splitting of the atom) generates heat which is used to create steam to drive a turbine.