Plant diversity is affected by spatial variables as well as soil physical and chemical variables. In this study, plant species and soil variables were investigated in five sites of Tabuk Province (Saudi Arabia), namely Aldesah, Alzetah, Alawz, Harra and Sharma, to understand if the spatially structured soil variables (pH, electric conductivity (EC), soil texture, calcium, potassium, phosphorus, phosphate, total organic matter (OM), bicarbonate and sodium) influence the plant diversity. A total of 163 plant species belong to 41 families and 124 genera were reported from the 5 sites. Diversity indices including the species richness (alpha), evenness, Brillouin, Menhinick, Margalef, equitability and estimated Chao-1 were significantly different among the studied sites with pronounced high values in Sharma and Aldesah. The highest value of beta diversity was reported in Aldesah (0.253) followed by Sharma (0.171). According to the principal coordinates of neighbourhood matrix (PCNM) analysis, 11 positive spatial vectors (variables) were found. However, after running the forward selection procedures (using 2 stopping criteria), only 3 spatial vectors were retained (PCNM 1 (adj–R2 = 0.043, F = 5.201, p = 0.004), PCNM 2 (adj–R2 = 0.027, F = 3.97, p = 0.006) and PCNM 3 (adj–R2 = 0.019, F = 3.36, p = 0.007)). The linear models between the selected spatial variables (PCNM vectors) and soil variables were produced to investigate their spatial structure. In the first model, the first PCNM 1 axis showed significant relationship with pH and potassium (adj–R2 = 0.175, p = 0.046). In the second model, the second PCNM 2 axis had a significant relationship with OM and sodium (adj–R2 = 0.561, p < 0.001). Lastly, sodium was the only factor significantly correlated with the third PCNM 3 axis (adj–R2 = 0.365, p = 0.002). In conclusion, the spatially structured variables of soil did not show strong influence on plant diversity except pH and potassium, which were correlated with PCNM 1, OM and sodium, which were correlated with PCNM 2, and sodium, which was correlated with PCNM 3.