Carbon-based molecules are the foundation of life and come in three main structures: straight chains, branched chains, and rings. The four main types of carbon-based molecules in living things are carbohydrates, lipids, proteins, and nucleic acids. Carbohydrates are made of carbon, hydrogen, and oxygen and include sugars and starches. Lipids include fats, oils, and cholesterol and have many functions like energy storage. Proteins are polymers of amino acids and have different shapes that influence their functions. Nucleic acids like DNA and RNA are made of nucleotides and perform roles like storing genetic information.