Hyperuricemia (HUA) endangers human health, and its prevalence has increased rapidly in recent decades. The current study investigated HUA's prevalence and influencing factors in Gongcheng, southern China. A cross-sectional investigation was conducted; 2128 participants aged 30–93 years were included from 2018 to 2019. Univariate and multivariate logistic regression models were used to screen HUA variables. A Bayesian network model was constructed using the PC algorithm to evaluate the association between influencing factors and HUA. The prevalence of HUA was 15.6% (23.2% in men, 10.7% in women). After screening the variables using a logistic regression analysis model, fatty liver disease (FLD), dyslipidemia, abdominal obesity, creatinine (CREA), somatotype, bone mass, drinking, and physical activity level at work were included in the Bayesian network model. The model results showed that dyslipidemia, somatotype, CREA, and drinking were directly related to HUA. Bone mass and FLD were indirectly associated with HUA by affecting the somatotype. The prevalence of HUA in Gongcheng was high in China. The prevalence of HUA was related to somatotype, drinking, bone mass, physical activity level at work, and other metabolic diseases. A good diet and moderate exercise are recommended to maintain a healthy somatotype and reduce the prevalence rate of HUA.