Socioeconomic position (SEP) in childhood and beyond may influence the gut microbiome, with implications for disease risk. Studies evaluating the relationship between life-course SEP and the gut microbiome are sparse, particularly among Hispanic/Latino individuals, who have a high prevalence of low SEP. We use the Hispanic Community Health Study/Study of Latinos (HCHS/SOL), a population-based cohort study conducted in four field centers in the United States (U.S.), to evaluate the association between life-course SEP and gut microbiome composition. Life-course SEP indicators included parental education (proxy of childhood SEP), current SEP (n = 2174), and childhood (n = 988) and current economic hardship (n = 994). Shotgun sequencing was performed on stool samples. Analysis of Compositions of Microbiomes was used to identify associations of life-course SEP indicators with gut microbiome species and functions. Parental education and current SEP were associated with the overall gut microbiome composition; however, parental education and current education explained more the gut microbiome variance than the current SEP. A lower parental education and current SEP were associated with a lower abundance of species from genus Bacteroides. In stratified analysis by nativity, we found similar findings mainly among foreign-born participants. Early-life SEP may have long-term effects on gut microbiome composition underscoring another biological mechanism linking early childhood factors to adult disease.