The rapid growth in the use of AI techniques, mainly machine learning (ML), is revolutionizing different industries by significantly enhancing decision-making processes through data-driven insights. This study investigates the influence of using ML, particularly supervised and unsupervised learning, on rational decision-making (RDM) within Jordanian e-government, focusing on the mediating role of trust. By analyzing the experiences of middle-level management within e-government in Jordan, the findings underscore that ML positively impacts the rational decision-making process in e-government. It enables more efficient and effective data gathering, improves the accuracy of data analysis, enhances the speed and accuracy of evaluating decision alternatives, and improves the assessment of potential risks. Additionally, this study reveals that trust plays a critical role in determining the effectiveness of ML adoption for decision-making, acting as a pivotal mediator that can either facilitate or impede the integration of these technologies. This study provides empirical evidence of how trust not only enhances the utilization of ML but also amplifies its positive impact on governance. The findings highlight the necessity of cultivating trust to ensure the successful deployment of ML in public administration, thereby enabling a more effective and sustainable digital transformation. Despite certain limitations, the outcomes of this study offer substantial insights for researchers and government policymakers alike, contributing to the advancement of sustainable practices in the e-government domain.