This study utilizes the National Health and Nutrition Examination Survey (NHANES) 2017–2018 data to explore the relationship between exposure to perfluoroalkyl substances (specifically perfluorooctanoic acid (PFOA) and perfluorooctanesulfonic acid (PFOS), metals lead (Pb), mercury (Hg), and cadmium (Cd), allostatic load, and hepatic disease markers, including the fatty liver index a measure of the likelihood of non-alcoholic fatty liver disease, aspartate aminotransferase (AST), alanine aminotransferase (ALT), alkaline phosphatase (ALP), and total bilirubin. The paper identified significant associations and interaction effects by employing descriptive statistics, Spearman’s correlation analysis, linear regression, and Bayesian kernel machine regression (BKMR). Descriptive statistics highlight sex-specific differences in contaminant levels. Spearman’s analysis underscores strong correlations among metals and per- and polyfluoroalkyl substances (PFAS). Linear regression reveals significant impacts of specific contaminants on AST, ALT, ALP, and bilirubin levels, adjusting for age and alcohol consumption. BKMR results further elucidate the complex, potentially synergistic relationships between these environmental exposures and the likelihood of non-alcoholic fatty liver disease, offering nuanced insights into their combined effects on liver health. The findings emphasize the intricate dynamics of environmental exposures on hepatic function, advocating for targeted public health interventions.