In order to enhance the motivation and learning effect of students’ English grammar learning, this paper introduces the concept of residential architectural design into the construction of innovative English grammar teaching space, exploring the potential influence mechanism of educational space on language learning behavior. The study focuses on the systematic design of architectural elements such as site layout, color matching, light environment organization and spatial morphology composition of the teaching space, and builds an ontological model for the establishment of an intelligent space for grammar teaching that integrates emotional perception, so as to promote students’ in-depth understanding of English grammar. The experimental results show that under this innovative educational space environment, the average score of the grammar test of the students in the experimental class is as high as 96.2, the standard deviation of the score is 3.4, the indicators of teaching satisfaction are higher than 90%, and the average number of times the students speak in each class is more than 5 times. The results of the study show that the innovative English grammar teaching space integrating architectural space optimization and intelligent teaching system can significantly improve the effectiveness of teaching and provide new ideas and paths for the integrated development of architecture and education.