The human milk microbiota (HMM) is thought to influence the long-term health of offspring. However, its role in asthma and atopy and the impact of host genomics on HMM composition remain unclear. Through the CHILD Cohort Study, we followed 885 pregnant mothers and their offspring from birth to 5 years and determined that HMM was associated with maternal genomics and prevalence of childhood asthma and allergic sensitization (atopy) among human milk-fed infants. Network analysis identified modules of correlated microbes in human milk that were associated with subsequent asthma and atopy in preschool-aged children. Moreover, reduced alpha-diversity and increased Lawsonella abundance in HMM were associated with increased prevalence of childhood atopy. Genome-wide association studies (GWASs) identified maternal genetic loci (e.g., ADAMTS8, NPR1, and COTL1) associated with HMM implicated with asthma and atopy, notably Lawsonella and alpha-diversity. Thus, our study elucidates the role of host genomics on the HMM and its potential impact on childhood asthma and atopy.