Background: The escalating prevalence of hyperuricemia is emerging as a significant public health concern. The association between dietary lignans and hyperuricemia is yet to be fully elucidated. Our study aims to evaluate the relationships between dietary lignan intake and hyperuricemia among middle-aged and elderly Chinese individuals, with an additional focus on investigating the underlying mechanisms. Methods: Dietary lignan intake was measured using a validated Food Frequency Questionnaire in 3801 participants at the baseline. Among them, 2552 participants were included in the longitudinal study with a median follow-up of 10.5 years. The gut microbiota was analyzed by shotgun metagenome sequencing in 1789 participants, and the targeted fecal metabolome was determined in 987 participants using UPLC-MS/MS at the midpoint of follow-up. Results: The multivariable-adjusted HRs (95% CIs) for hyperuricemia incidence in the highest quartile (vs. the lowest quartile) of dietary intake of total lignans, matairesinol, pinoresinol, and secoisolariciresinol were 0.93 (0.78-1.10), 0.77 (0.66-0.90), 0.83 (0.70-0.97), and 0.85 (0.73-1.00), respectively. The gut microbial and fecal metabolic compositions were significantly different across the dietary lignan groups and the hyperuricemia groups. The beneficial associations between dietary lignans and hyperuricemia might be mediated by several gut microbes (e.g., Fusobacterium mortiferum and Blautia sp. CAG-257) and the downstream bile acid products (e.g., NorCA, glycochenodeoxycholic acid, and glycoursodeoxycholic acid). Conclusion: We found that dietary lignans were inversely associated with hyperuricemia incidence, and the gut microbiota-bile acid axis might mediate this association. Our findings provide new perspectives on precise therapeutic targets and underlying mechanisms for conditions associated with elevated uric acid.