Longji Terrace, one of the three ancient terraces in China, is a comprehensive tourist scenic spot with agricultural terraces as the main body and integrating natural landscape, cultural landscape and ethnic customs. In this paper, taking Longji Terrace in Guilin as the research object, using geographic information technology to study its ecosystem structure from the aspects of space, components, etc., to explore the material and energy flow patterns of the ecosystem, and to analyze the service functions of the ecosystem, so as to provide basic information for the healthy and sustainable development of the local ecological environment.