Placing an organism in sets of categories based on its characteristics is called biological classification or taxonomy.
The groups of biological organisms (taxa) are formed on the basis of their shared characteristics and have a taxonomic rank. The principal ranks are domain, kingdom, phylum, class, order, family, genus and species.