Objectives: China has the world's largest population and the stroke has become the leading cause of death in recent years. The purpose of this study was to explore the associations between hypertension, family history of stroke, diabetes mellitus, obesity and stroke among middle-aged and older farmers of western China. A population-based study was conducted from June 2014 to April 2015 in Shaanxi and Sichuan provinces. Methods: Twenty thousand five hundred twenty-five Chinese middle-aged and older farmers (>= 40 years) were recruited to the Qinling-Daba Mountains Region Stroke Study. A structured-questionnaire was used to collect data through face-to-face interviews. Demographic characteristics, risk factors, medical history, and other clinical characteristics were recorded for all participants. The association between hypertension, family history of stroke, diabetes mellitus, obesity and stroke were analyzed by using univariate and multivariate logistic regression analysis. Results: The stoke prevalence rate was 1380/100,000 in middle-aged and older farmers of western China. The difference in hypertension, diabetes mellitus, obesity and family history between different age groups had statistical significance (p < 0.05). The prevalence rate of hypertension and family history of stroke were higher in male population than in the female population. The difference was statistically significant (p < 0.05). Univariate logistic regression analysis demonstrated age, gender, hypertension, obesity and family history of stroke were stroke risk factors ( p < 0.05). Multivariate logistic regression analysis revealed that the odds ratios of family history of stroke, obesity and hypertension were 7.177, 4.389 and 3.647 respectively. Conclusions: Family history is the strongest stroke risk factor in middle-aged and older farmers of western China.