Polycyclic aromatic hydrocarbons (PAHs) are neurotoxic compounds. However, the association between exposure to PAHs and anxiety remains unclear. We enrolled 4026 participants aged 20 and over from the 2007 to 2012 National Health and Nutrition Examination Survey and analyzed 9 urinary PAH metabolites (1-hydroxynaphthalene [1-NAP], 2-NAP, 2-hydroxyfluorene [2-FLU], 3-FLU, 1-hydroxyphenanthrene, 2-PHE, 3-PHE, 1-hydroxypyrene [1-PYR], and 9-FLU). The logistic regression, restricted cubic spline, weighted quantile sum regression, and Bayesian kernel machine regression models were used to assess the associations between PAHs and anxiety. After adjusting for covariates, logistic regression analysis showed that 1-NAP, 2-NAP, 3-FLU, 2-FLU, 3-PHE, 1-hydroxyphenanthrene, 1-PYR, and 9-FLU were significantly positively associated with anxiety (P < .05), with odds ratio (95% confidence interval) of 1.12 (1.04, 1.20), 1.20 (1.07, 1.34), 1.20 (1.10, 1.31), 1.24 (1.12, 1.38), 1.19 (1.05, 1.34), 1.17 (1.01, 1.34), 1.16 (1.04, 1.29), and 1.17 (1.03, 1.32). When ln PAHs are used as categorical variables in the model, logistic regression analysis found significant associations between higher exposure quartiles of 1-NAP (Q4: 1.51 [1.18, 1.94]; P-trend = .001), 2-NAP (Q4: 1.45 [1.07, 1.98]; P-trend = .009), 3-FLU (Q4: 1.64 [1.23, 2.18]; P-trend < .001), and 2-FLU (Q4: 1.80 [1.36, 2.37]; P-trend < .001) and anxiety (P < .05). Restricted cubic spline found a significant nonlinear relationship between 1-PYR and anxiety (Pfor-nonlinear = .014, Pfor-overall = .024). Moreover, a positive and significant association was observed between the weighted quantile sum index for the 9 PAHs and anxiety (odds ratio [95% confidence interval]: 1.15 [1.04, 1.28]), with the greatest contributions from 1-NAP (40.55%) and 3-FLU (39.98%). The Bayesian kernel machine regression model exhibited a positive trend between mixed PAHs and anxiety. This study suggests that exposure to PAHs, either individually or in combination, may be associated with an increased risk of anxiety.