Fats are esters formed from fatty acids and glycerol, serving as building blocks for cells and energy sources. They consist mainly of carbon, hydrogen, and oxygen atoms and can include small amounts of phosphorus and nitrogen. Fats are commonly found as triglycerides, where three fatty acids combine with one glycerol molecule, resulting in diverse types based on fatty acids' chain lengths and structures.