In urban planning, GIS is used for infrastructure development, zoning, and urban expansion planning. It helps in analyzing spatial data to determine the best locations for new developments, considering factors like population density, traffic patterns, and environmental impact. In rural planning, GIS aids in land use management, natural resource conservation, and agricultural planning. It provides valuable insights into soil types, water sources, and land suitability for various purposes.