To make cotton candy, sugar is melted until it becomes a liquid. This liquid sugar is then spun in a machine. It begins to cool and turn into a solid again, taking on the shape of sugary threads, which are often colorful.