Given that there is only a limited body of evidence available concerning the dietary habits of Spanish university students, the present study assesses the quality of this group’s diet, their adherence to the National Food-Based Dietary Guidelines, and the predictive factors of their diet quality. To do so, a cross-sectional study was performed on a sample of 1055 students. The quality of the participants’ diets was then analysed by using the Spanish Healthy Eating Index, and then their level of compliance was assessed in light of the dietary recommendations put forth by the Spanish Society for Community Nutrition. According to these standards, only 17.4% of the participants had a healthy diet. The level of compliance with the recommendations was poor, highlighting especially the low levels of “fruit” and “vegetables” that they consumed as well as high levels of “cold meats and cuts” and “sweets.” The factors that predicted a worse diet are being male, living alone, low levels of physical activity, smoking, high alcohol intake, leading a sedentary lifestyle, psychological distress, and insomnia (p < 0.005). Furthermore, participants with low or high body weights showed signs of a higher quality diet (p < 0.001). The present findings suggest that a significant proportion of university students ought to change their dietary habits; these also attest to the importance of developing strategies that are directly targeted at university students in order to promote a healthy diet.