The study of the three-dimensional structure of biological molecules and the relationship between structure and function.