Hydroxyapatite (HAp), the most abundant biological material among mammals, has been recently demonstrated to possess moderate antibacterial properties. Metagenomics provides a series of tools for analyzing the simultaneous interaction of materials with larger communities of microbes, which may aid in optimizing the antibacterial activity of a material such as HAp. Here, a microbiome intrinsic to the sample of sandy soil collected from the base of an African Natal plum (Carissa macrocarpa) shrub surrounding the children’s sandbox at the Arrowhead Park in Irvine, California was challenged with HAp nanoparticles and analyzed with next-generation sequencing for hypervariable 16S ribosomal DNA base pair homologies. HAp nanoparticles overwhelmingly reduced the presence of Gram-negative phyla, classes, orders, families, genera and species, and consequently elevated the relative presence of their Gram-positive counterparts. Thermodynamic, electrostatic and chemical bonding arguments were combined in a model proposed to explain this selective affinity. The ability of amphiphilic surface protrusions of lipoteichoic acid in Gram-positive bacteria and mycolic acid in mycobacteria to increase the dispersibility of the bacterial cells and assist in their resistance to capture by the solid phase is highlighted. Within the Gram-negative group, the variability of the distal, O-antigen portion of the membrane lipopolysaccharide was shown to be excessive and the variability of its proximal, lipid A portion insufficient to explain the selectivity based on chemical sequence arguments. Instead, flagella-driven motility proves to be a factor favoring the evasion of binding to HAp. HAp displayed a preference toward binding to less pathogenic bacteria than those causative of disease in humans, while taxa having a positive agricultural effect were largely captured by HAp, indicating an evolutionary advantage this may have given it as a biological material. The capacity to selectively sequester Gram-negative microorganisms and correspondingly alter the composition of the microbiome may open up a new avenue in environmental and biomedical applications of HAp.