Nuclear fusion could produce almost boundless energy with zero emissions or waste, but is not yet viable on a large scale because of the cost and difficulty generating the right conditions.