Magnetic confinement is a method used in nuclear fusion reactors to contain hot plasma using magnetic fields, preventing it from touching the reactor walls and maintaining the conditions necessary for fusion reactions. This technique is crucial for achieving sustainable nuclear fusion, as it helps in maintaining the high temperatures and pressures needed for the fusion process to occur efficiently.