In today’s world, global ecological environment problems are increasingly serious, and human beings have gradually realized the importance of protecting the ecological environment. With the continuous deepening of the concept of sustainable development, the concept of green education has also aroused great attention in the education sector; moreover, its concept has gradually been applied to education and teaching. However, there are many problems in the application of green education. For example, the current green education system is not sound, the importance of green education in schools is not obvious, and there is no effective green teacher training program. In order to improve the current application of green education, this paper proposes to integrate the concept of sustainable development into the teaching of green environmental protection education. Through the construction of a sound green education system and green education classrooms, green ecological ideas would thus be infiltrated into many aspects of education and teaching. Due to the uneven distribution of educational resources in many regions, the quality of education in these regions is also uneven. In order to improve this situation, this paper also constructs an educational resource distribution model. Furthermore, this paper also analyzes the educational resource allocation model by using a differential evolution algorithm. From the experimental results, under the algorithm in this paper, the average student–teacher ratio of each county was 4.93, and the average number of books per student was 38.92. The average running time of teacher resources and book resources allocated by the model was found to be 1.47 s and 1.39 s, respectively. Under the traditional algorithm, the average student–teacher ratio in each county was 5.93, and the average number of books per student in each county was 31.8. The average running time of teacher resources and book resources allocated by the model was 2.36 s and 2.58 s, respectively. It can be seen from the above data that the algorithm in this paper can effectively optimize the allocation rationality of the educational resource allocation model and shorten the running time of resource allocation.