Crop recommendation systems play a crucial role in modern agriculture by helping farmers make data-driven decisions to maximize yield, optimize resource use, and ensure sustainable farming practices. By analyzing environmental and soil parameters, these systems can suggest the most suitable crops for specific conditions, reducing the risks of crop failure and improving overall productivity. This study evaluates the performance of five ensemble learning algorithms—Random Forest, Extra Trees, CatBoost, XGBoost, and LightGBM—for multiclass classification in a crop recommendation system. All models achieved high accuracy above 98%, with Random Forest demonstrating the best and most stable performance. The feature importance analysis revealed that climatic factors, particularly rainfall and humidity, contributed the most to prediction outcomes, followed by macronutrients such as potassium, phosphorus, and nitrogen. In contrast, temperature and soil pH showed relatively lower influence. These findings highlight the dominance of climatic factors over soil chemical properties and demonstrate the capability of ensemble learning methods to capture complex data patterns. Random Forest is recommended as the primary model to support more effective land management and crop cultivation strategies.