Cardiovascular disease (CVD) is a prevalent health issue, and various risk factors contribute to its development, including blood lipids, blood pressure, diabetes, smoking, and alcohol consumption. Apolipoprotein B (ApoB) is related to CVD. ApoB is present on the surface of low-density lipoprotein (LDL), and its cellular recognition and LDL uptake are mainly achieved through recognition. It plays a crucial role in the diagnosis and treatment of CVD. This study aims to investigate the relationship between Klotho and ApoB in the general population of the United States as the correlation between serum Klotho and apoB is currently unknown. These findings could potentially guide the development of future treatments for CVD. This study utilized data from the National Health and Nutrition Examination Survey (NHANES) collected between 2007 and 2016. A linear regression model and smooth curve fitting were conducted to analyze the relationship between serum Klotho and apoB. The results indicate a negative correlation between serum Klotho concentration and apoB concentration (β = −71.7; 95% confidence interval [CI]: −120.8, −22.6;P= .005). After adjusting for confounding variables, the negative correlation between apoB concentration and serum Klotho concentration became more significant (β = −91.8; 95% CI: −151.3, −32.2;P= .004). When apoB concentration was converted from a continuous variable to a categorical variable (tertiles: T1 <0.8 g/L; T2: ≥0.8 g/L to <1.0 g/L; T3: ≥1.0 g/L), the serum klotho level of participants in the highest tertile (≥1.0 g/L) was −44.8 pg/mL (95% CI: −86.3, −3.2;P= .040) lower than that in the lowest tertile (<0.8 g/L). The smooth curve fitting diagram revealed differences in the relationship between serum Klotho concentration and apoB among individuals with different CVD risk factors. This study demonstrates a significant negative correlation between serum Klotho concentration and apoB concentration, even after controlling for confounding factors. The findings suggest that serum Klotho and apoB may be involved in the development of CVD, and targeting these factors could be a potential approach for CVD prevention and treatment.