Candy is made by dissolving sugar in water or milk to form a syrup, which is boiled until it reaches the desired concentration or starts to caramelize. The type of candy depends on the ingredients and how long the mixture is boiled. Candy comes in a wide variety of textures, from soft and chewy to hard and brittle.