A tokamak is a ring shaped magnetic bottle. Its fields guide charged particles so they loop around the torus instead of striking the walls.
That approach is called magnetic confinement. It lets scientists heat a thin gas until atomic nuclei have enough energy to fuse and release more energy.
France beats the world record for fusion plasma duration - Earth.com https://share.google/snsksyB6Ukog1Nwb2