Air pollution, particularly the presence of Particulate Matter (PM) 2.5, poses significant health risks to humans, with industrial growth and urban vehicle emissions being major contributors. This study utilizes machine learning techniques, specifically K-Nearest Neighbors (KNN) and Support Vector Machine (SVM) algorithms, to predict PM2.5 levels. A dataset from Kaggle consisting of PM2.5 and other pollutant parameters is preprocessed and split into training and testing sets. The models are trained, evaluated, and compared using Mean Squared Error (MSE) and Root Mean Squared Error (RMSE) metrics. Additionally, hyperparameters are applied to optimize the models. Results show that SVM with hyperparameters performs better, indicating its potential for accurate air quality prediction. These findings can aid policymakers in implementing effective pollution control strategies.