Carbohydrates are a major class of organic compounds, including sugars and starches, that serve as the primary source of dietary energy for animals. Fiber is a specific type of carbohydrate, but the general group broken down for energy is carbohydrates.