The traditional lecture-based model of teaching and learning has led to the exploration of innovative approaches including digital escape rooms. Digital escape rooms offer an immersive and engaging experience that promotes critical thinking, problem-solving, and teamwork, making them a unique opportunity to address the challenges of STEM education, which is often perceived as difficult, boring, and intimidating. In this study, the goal is to explore the application of digital escape rooms as an innovative practice in STEAM (science, technology, engineering, arts, and mathematics) education in Europe. More specifically, the study aims to evaluate the influence of digital escape rooms on student engagement and learning outcomes in mathematics education as well as to provide valuable insights into the efficacy of this approach as a means of teaching mathematics and fostering active and experiential learning in STEAM education. In order to investigate the potential of digital escape rooms as a metaphor for breaking down barriers and escaping from the ”box” in STEM education, this paper proposes a conceptual framework for understanding the pedagogical value of digital escape rooms in STEM education. It outlines the design process, including learning paths and scenarios, storyline, puzzles, challenges, and feedback mechanisms, and presents a concept of escape room design patterns. An example case study of a digital escape room designed to teach mathematics to university students is also presented, providing insights into the effectiveness of this approach. By using digital escape rooms as a metaphor for breaking down barriers in STEM education, a more inclusive, engaging, and impactful learning environment can be created to prepare students for the challenges and opportunities of the 21st century.