The main purpose of this study aims to apply and compare the rationality of landslide susceptibility maps using support vector machine (SVM) and particle swarm optimization coupled with support vector machine (PSO-SVM) models in Lueyang County, China, enhance the connection with the natural terrain, and analyze the application of grid units and slope units. A total of 186 landslide locations were identified by earlier reports and field surveys. The landslide inventory was randomly divided into two parts: 70% for training dataset and 30% for validation dataset. Based on the multisource data and geological environment, 16 landslide conditioning factors were selected, including control factors and triggering factors (i.e., altitude, slope angle, slope aspect, plan curvature, profile curvature, SPI, TPI, TRI, lithology, distance to faults, TWI, distance to rivers, NDVI, distance to roads, land use, and rainfall). The susceptibility between each conditioning factor and landslide was deduced using a certainty factor model. Subsequently, combined with grid units and slope units, the landslide susceptibility models were carried out by using SVM and PSO-SVM methods. The precision capability of the landslide susceptibility mapping produced by different models and units was verified through a receiver operating characteristic (ROC) curve. The results showed that the PSO-SVM model based on slope units had the best performance in landslide susceptibility mapping, and the area under the curve (AUC) values of training and validation datasets are 0.945 and 0.9245, respectively. Hence, the machine learning algorithm coupled with slope units can be considered a reliable and effective technique in landslide susceptibility mapping.