Intestinal microbiota is known to be important in health and disease. Its composition is influenced by both environmental and host factors. Few large-scale studies have evaluated the association between host genetic variation and the composition of microbiota. We recruited a cohort of 1,561 healthy individuals, of whom 270 belong in 123 families, and found that almost one-third of fecal bacterial taxa were heritable. In addition, we identified 58 SNPs associated with the relative abundance of 33 taxa in 1,098 discovery subjects. Among these, four loci were replicated in a second cohort of 463 subjects: rs62171178 (nearest gene UBR3) associated with Rikenellaceae, rs1394174 (CNTN6) associated with Faecalibacterium, rs59846192 (DMRTB1) associated with Lachnospira, and rs28473221 (SALL3) associated with Eubacterium. After correction for multiple testing, 6 of the 58 associations remained significant, one of which replicated. These results identify associations between specific genetic variants and the gut microbiome.