Traffic congestion and disorderly development of land will affect the development of cities. How to make efficient use of urban land is a major issue for cities. Based on this, the problems existing in the planning and construction of urban rail transit in our country were analyzed. The method of rail transit network layout, as well as the site size, site selection and spacing optimization methods were analyzed. The combinatorial network layout planning of Metro Line in a city was studied. According to the layout of rail transit stations, a layout optimization model was proposed. Three basic network layouts were used to lay down the subway lines in this city, and the site size, spacing and intersection points were planned. The effective utilization rate of urban land was increased, and people's travel time was saved, so as to provide a new idea for the layout of rail transit