The study of the structure and function of biological macromolecules, including proteins, nucleic acids, and carbohydrates.