This study aimed to investigate the effects of statin use on the incidence of brain tumors. The Korean National Health Insurance Service-National Sample Cohort from 2005 to 2019 was used. The 1893 patients who were diagnosed with brain tumors were matched with 7572 control patients for demographic variables. The history of dyslipidemia was collected, and their history of prescription of statins before diagnosis of brain tumor was examined. The participants without dyslipidemia were set as a reference population. Then, the odds for brain tumors were analyzed in dyslipidemia patients without statin use, dyslipidemia patients who were prescribed statins for less than 365 days, and dyslipidemia patients who were prescribed statins for 365 days or more. Propensity score overlap weighted multivariable logistic regression analysis was used and adjusted for demographics and comorbidities. Secondary analyses were conducted according to types of statins, malignancy of brain tumors, and histories of demographics or comorbidities. A total of 11.78% of brain tumor patients and 10.95% of control participants had histories of statin use for 365 days or more. Dyslipidemia patients with 365 days or more duration of statin use demonstrated 1.22 times higher odds for brain tumors than normal participants (95% confidence intervals [CI] = 1.06-1.14, p = 0.007). Dyslipidemia patients with less than 365 days of statin use had higher odds of brain tumors than other groups (odds ratio = 1.60, 95% CI = 1.36-1.87, p < 0.001). The higher odds for brain tumors in short-term statin users (<365 days) than in long-term statin users (≥365 days) were consistent in secondary analyses according to types of statins, malignancy of brain tumors, and histories of demographics or comorbidities. Long-term statin use in dyslipidemia patients was related to a lower risk of brain tumors than short-term statin use in patients with dyslipidemia.