This study is about the investigation of the walking environment of the First Experimental Elementary School in Shapingba District of Chongqing City and the Zaozilanya Elementary School in Yuzhong District and the analysis of the pedestrian's consciousness. The improvement plan is obtained by comparing and analyzing the walking environment around the school. The survey results are as follows. According to the survey results of the walking environment around the school, the sidewalks of the two schools are relatively narrow, and there are more pedestrians crossing the road. There is a phenomenon of parking in both schools. The phenomenon of parking in Zaozilanya Elementary School is even more serious. In investigating the most important elements of the school's pedestrian environment, the setting of the signpost, the setting of the crosswalk and signal lights, the setting of the fence, the setting of the vehicle's deceleration facilities, and the control of the school gate are all necessary. Therefore, in order to create a safe and comfortable improvement plan for the surrounding environment of the school, first of all, in the improvement of the facilities around the school, the setting of the fence, the setting of the speed bump, the improvement of the crosswalk and the signal light. Second, in terms of restrictions, the scope of protection around the school needs to be expanded, and restrictions on parking and restrictions on vehicle traffic need to be implemented. Third, in terms of education and publicity, it is not only necessary to provide safety guidance for students to go to school, but also to provide drivers with driving safety education and publicity.