The lifestyle interventions are effective preventive measures for stroke in general population, and the stroke risk with lifestyle factors may be modified by gender, health conditions, etc. Therefore, we conducted a case-control study to investigate the gender-specific association between stroke risk and lifestyle factors in adults with diabetes based on the China National Stroke Screening Survey. Structured questionnaires were used to collect demographic data and information regarding lifestyle factors, history of chronic medical conditions, and family history of stroke and the status of treatment. The case group comprised individuals diagnosed with first-ever stroke in 2013-2014 screening period. Their corresponding controls (frequency-matched for age group and urban/rural ratio) were randomly selected from individuals with diabetes without stroke. There were 170 total stroke cases (500 controls) and 152 ischemic stroke cases (456 controls) among men with diabetes, and 183 total stroke cases (549 controls) and 168 ischemic stroke cases (504 controls) among women with diabetes. We found that physical inactivity was significantly associated with increased risk of total stroke (odds ratio [OR] = 1.50, 95% confidence interval [CI] 1.02-2.21) and of ischemic stroke (OR = 1.57, 95% CI 1.04-2.36) in women with diabetes. We found no significant association of smoking, overweight/obesity, or physical inactivity with risk of total or ischemic stroke in men with diabetes. Among the lifestyle factors of smoking, overweight/obesity, and physical inactivity, physical inactivity might increase the risk of total and ischemic stroke in women with diabetes.