Sugar (a carbohydrate) is dehydrated with concentrated sulfuric acid. Since a carbohydrate was once considered just hydrated carbon, if you remove the water, carbon would be left over. The acid rips the water out of the sugar and the heat generated by this reaction causes the water to turn to steam. A black mass of carbon is produced.
Have an iPhone? Check out all 200+ new features coming in iOS 13.