China is experiencing rapid urbanization. The focus on health issues has shifted from the treatment of diseases to passive or active prevention. Diseases caused by the deterioration of the urban environment, such as cardiovascular disease, diabetes, obesity and other chronic diseases and mental illness, have gradually become the main threat to public health. Studies have confirmed that urban green spaces (UGS) can help residents relieve mental stress, improve mood, reduce mental fatigue and restore attention, which has a positive effect on people's physical and mental health. In this study, the relationship between the quantity and quality factors of UGS and the physical and mental health of urban residents in Xihu District of Hangzhou is examined, and on this basis, UGS design strategies are proposed to promote the physical and mental health of residents. This study is of great significance for the future construction of UGS that are beneficial to the health of residents and the promotion of a healthy China and healthy city construction.