Scientists will look for evidence like similar body or skeleton structures, internal similarities or maybe sometimes the whole heirarchy to confirm that two speices are closely related to each other.
For example ; in birds, scientists will look for type of feathers, body structure, beaks to confirm the similarity of two birds.