The study of the three-dimensional structure of biological molecules, including proteins and nucleic acids.