Residential quarters are a critical component of urban areas, which significantly affects people's health and quality of life. In recent decades, the high-density and crowded residential quarters have become the mainstream organizational model of construction in China, because of the rapid and massive urbanization in many cities. This results in the contradiction between the eco-environment needs and the accommodation needs. Therefore, a systematic evaluation of the eco-environment in residential quarters is urgently needed to address the drawbacks of current residential quarters' planning and design. This paper aims to explore ways to improve the eco-environment with residential quarters from the perspective of China. We first used the Remote Sensing Ecological Index (RSEI) to evaluate the eco-environmental quality of 3, 756 residential quarters in the main urban areas of Xi 'an, China. Then, we quantitatively analyzed the landscape patterns of the impervious surfaces in these residential quarters. Finally, we characterized the impacts of residential quarters layout on the ecological environment by using the vegetation coverage (FVC), the normalized difference bare soil index (NDBSI), building density (BD), the residential density (RD), and the population density (PD) as main factors. The results are as follows: (1) Only 20.5 % of residential quarters with good eco-environments were distributed between the Second and Third Ring Road, indicating the need for improvement in creating livable eco-environments. (2) The shape of the impervious surface of excellent ecological quarters is complex and broken, the average patch area is smaller, and the degree of aggregation and combination of patches is lower compared to residential quarters with poor ecological quality. Therefore, it is recommended to reduce the connectivity of the impervious surface to improve the eco-environment of residential quarters. (3) Among the factors affecting RSEI of residential quarters, FVC, and NDBSI contribute more than other factors. For the construction of excellent eco-environments in residential quarters, we suggest that vegetation coverage should be no less than 0.4, the impervious surface coverage should be no more than 0.53, the building density should be between 0.28 ∼ 0.35, residential density should be no more than 0.22, and the population density of residential quarter should be under 0.29. Overall, for open and low-density residential quarters, the living environment can be improved by enriching vegetation and reducing impervious surfaces, while compact, high-density residential quarters can create a livable eco-environment by optimizing the impervious surface landscape patterns.