Fusion is the energy source of the universe. The local conditions in the core of the Sun allow the transfer of mass into energy, which is finally released in the form of radiation. Technical fusion melts deuterons and tritons to helium releasing large amounts of energy per fusion process. Because of the conditions for fusion, which will be deduced, the fusion fuel is in the plasma state. Here we report on the confinement of fusion plasmas by magnetic fields. Different confinement concepts — tokamaks and stellarators — will be introduced and described. The first fusion reactor, ITER, and the most modern stellarator, Wendelstein 7-X, are under construction. Their basic features and objectives will be presented.