The study of the molecular basis of biological activity, including the structure and function of biomolecules.