A carbohydrate is a biological molecule of hydrogen, oxygen, and carbon atoms. Carbohydrates are an important class of bioactive compounds in life.