Fusion occurs in the sun's innermost core, when two atoms merge, releasing energy and light in the process. Photons of light are first created in the sun's center. Over tens of thousands of years, the photons travel a "drunken walk," zigzagging their way from atom to atom until they reach the surface.