People live in environments which determine the state of human existence in society. Based on this, this paper conducts case intervention and long-term tracking studies on elderly depressive patients from a sociological perspective. Finally, it is found that through a series of social intervention, environmental changes and psychological care, senile depression has been significantly improved. On this basis, this paper attempts to construct an intervention system to improve the mental health and well-being of the elderly by improving their living environment.