The research object of educational psychology is the basic psychological law of students' learning and teachers' teaching in school education situation. This paper mainly studies the psychological imagination of students and teachers in the process of school education, which mainly refers to the basic psychological laws of how students learn and how teachers teach, including the process of students acquiring knowledge and skills, forming good personality and moral quality, and various conditions that restrict students' learning, such as learning motivation, learning transfer, learning strategies, teaching psychology, school group psychology, measurement and evaluation of learning and teaching, and teacher psychology. )