Lightning is one of the most severe weather hazards that will cause significant economic, social and environmental damage each year. The prediction of a lightning is a very difficult task due to the spatial and temporal expansion of weather either physically or dynamically. Therefore, timely forecasting of lightning and evaluation of the best data mining model is effective in reducing damage. In this research, the data of the years 2012_2018 of the Meteorological Station of Rasht were used, including dependent variable of occurrence and non-occurrence of lightning during 7 years and independent variables of factors affecting lightning including temperature, relative humidity, cloudy, wind speed, wind direction, pressure air and Previous day's lightning. After preprocessing and processing data, data mining models including Classification & Regression Tree (CART), Chi-squared Automatic Interaction Detector (CHAID), Induction of Decision Trees (C5) and neural networks Radial Basis Function (RBF), Multi Layer Perceptron (MLP) and Support Vector Machine (SVM) were used in SPSS Modeler Ver 20 software. The results of the models were compared with the Comparative Criteria and the Receiver operating characteristic (ROC) curve. According to the results of the models, the probability of lightning occurrence is higher in the months of May, June and July than in other months and the rate of occurrence from spring to winter has a decreasing trend, while in winter it is at least. CHAID tree with a specificity rate of 0. 794 and a minimum false positive rate of 0. 205 and the SVM model with a correct prediction of 0. 773 and an error rate of 0. 475 and precision of 0. 855 have optimum performance compared with other models.