The greenhouse microclimate, especially temperature, is highly complex, and controlling it requires significant resources due to the greenhouses' inefficient design. The application of model predictive control is a promising strategy for temperature control and efficient greenhouse management. However, it does not account for the inaccuracies and uncertainties existing in the system, leading to sub-optimal temperatures. Therefore, this study proposes a comprehensive data-driven robust model predictive control framework for greenhouse temperature control and its energy utilisation assessment in the presence of uncertainties. First, an analytical model based on mass and energy balance and a data-driven model based on an artificial neural network is developed, and their prediction performance is compared. The artificial neural network demonstrates a higher prediction accuracy and is used as the system model in the proposed control framework. A robust model predictive control strategy, based on the minimax objective function and particle swarm optimisation algorithm, is developed to handle the uncertainties in the system. Results illustrate that in the presence of uncertainties, the robust model predictive control strategy outperforms the existing greenhouse climate management system and basic model predictive control with an RMSE of 0.32 °C and 0.60 °C for a two-day simulation period in winter and summer, respectively. Furthermore, the robust model predictive control strategy leads to an energy reduction of 9.67% and 23.61% in winter and summer. The proposed framework is flexible and general and can be applied to other greenhouses with different configurations and cultivated crops by fine-tuning it on the new data set.