Asthma is a chronic respiratory disorder defined by airway inflammation, chest pains, wheezing, coughing, and difficulty breathing that affects an estimated 300 million individuals globally. Although various studies have shown an association between air pollution and asthma, few studies have used statistical and machine learning algorithms to investigate the effect of each individual air pollutant on asthma. The purpose of this research was to assess the association between air pollutants and the frequency of hospital visits by asthma patients using three analysis methods: linear correlation analyses were performed by Pearson correlation coefficients, and least absolute shrinkage and selection operator (LASSO) and random forest (RF) models were used for machine learning-based analyses to investigate the effect of air pollutants. This research studied asthma patients using the hospital visit database in Seoul, South Korea, collected between 2013 and 2017. The data set included outpatient hospital visits (n = 17,787,982), hospital admissions (n = 215,696), and emergency department visits (n = 85,482). The daily atmospheric environmental information from 2013 to 2017 at 25 locations in Seoul was evaluated. The three analysis models revealed that NO2 was the most significant pollutant on average in outpatient hospital visits by asthma patients. For example, NO2 had the greatest impact on outpatient hospital visits, resulting in a positive association (). In hospital admissions of asthma patients, CO was the most significant pollutant on average. It was observed that CO exhibited the most positive association with hospital admissions (I = 3.329). Additionally, a significant time lag was found between both NO2 and CO and outpatient hospital visits and hospital admissions of asthma patients in the linear correlation analysis. In particular, NO2 and CO were shown to increase hospital admissions at lag 4 in the linear correlation analysis. This study provides evidence that PM2.5, PM10, NO2, CO, SO2, and O3 are associated with the frequency of hospital visits by asthma patients.