In a nutshell, cotton candy is made by melting sugar and spinning it through small holes in a cotton candy machine, and allowing it to harden into delicate strands. This method is based on science of sugar crystallization, which gives cotton candy its distinct texture and look.