If you squish hydrogen atoms together hard enough, and hot enough, they release energy.
But it needs to be really really hot - so hot that anything you made it out of would melt.
So what do you do?
You use a magnet. The magnet squishes the really hot hydrogen without actually touching it.
But if you squish one side, the hydrogen will want to go out of the other side. So you have to squish all sides exactly the same amount.
It turns out, it's impossible to make a magnet in the shape of a ball that squishes on all sides equally.
But, it is possible to make one in the shape of a doughnut! That's a tokamak. They are complicated because you also have to use the hydrogen inside the tokamak to help make the magnet work and keep the hydrogen inside.
Another shape that works is a kind of twisted doughnut, this is called a stellarator, if you do that, you don't need to also use the hydrogen inside as a magnet, and this makes it easier. But the twisted shape means it's harder to build because you have to put the magnets in exactly the right place.
The name "tokamak" comes from a sentence in Russian describing the machine, and the name "stellarator" comes from a word that means "sun".