Radioactive decay
The design of an RTG is simple by the standards of nuclear technology: the main component is a sturdy container of a radioactive material (the fuel). Thermocouples are placed in the walls of the container, with the outer end of each thermocouple connected to a heat sink. Radioactive decay of the fuel produces heat. It is the temperature difference between the fuel and the heat sink that allows the thermocouples to generate electricity.