Chocolate is a food made from roasted and ground cocoa beans mixed with fat (e.g. cocoa butter) and powdered sugar to produce a solid confectionery. There are several types of chocolate, classified primarily according to the proportion of cocoa and fat content used in a particular formulation.