As artificial intelligence becomes more deeply embedded in critical areas like healthcare, finance, and criminal justice, the need for greater transparency and accountability in machine learning has come to the forefront. This article examines how Explainable Artificial Intelligence (XAI) has developed in response to the challenges posed by opaque "black-box" models. It compares black-box approaches with more transparent "white-box" models and the increasingly popular "glass-box" methods that aim to balance accuracy with interpretability. Through a review of current research and real-world examples, the article highlights how techniques like SHAP, LIME, and Explainable Boosting Machines are helping to make AI decisions more understandable and trustworthy. It also discusses the practical and ethical considerations involved in applying XAI, emphasizing the importance of aligning AI systems with human values, stakeholder expectations, and regulatory standards.