The use of the structure of molecules to gain information on an organism's evolutionary relationships.