The study of the structure and function of biological molecules, especially nucleic acids and proteins.