White-flowered mangroves—nila in Tagalog—once crowded the shores of the Pasig River, a tidal waterway in the Philippines that connects Laguna de Bay with the South China Sea. The flowers were so numerous that the settlement at the western end of the river came to be known as Manila, which means: “There is nila here.” Today, mangroves are considerably harder to find. The urbanized river became so heavily polluted as factories and shantytowns grew up along it that ecologists declared its waters biologically dead in the 1990s.

With a population of 1.6 million people spread over 38 square kilometers (42,000 people per square kilometer), Manila is sometimes listed as the most densely populated city in the world. When the entire metro area—about 24 million people spread over 1,580 square kilometers is included—the city’s density (15,300 people per square kilometer) is less of an outlier but still quite high, according to statistics compiled by Demographica. For comparison, Mumbai has a density of about 32,400 people per square kilometer, Seoul has 10,400 per square kilometer, and Los Angeles has 2,400 per square kilometer.

As shown in this pair of satellite images, growth has been particularly rapid in the last few decades. On January 31, 1988, the Thematic Mapper on Landsat 5 acquired the top image; on February 7, 2014, the Operational Land Imager on Landsat 8 acquired the bottom image. Rural areas—mainly farmland and forest—appear light green. Urban areas are gray. Turn on the comparison tool to slide between the two images, and download the large images to observe the changes on a finer scale.

Between 2000 and 2010, Manila’s urban spaces—defined as areas where the built environment covered more than 50 percent of the landscape in a given pixel—had expanded from 1,800 square kilometers to 2,300 square kilometers (2.4 percent per year). The expansion was the sixth highest in Asia in both absolute and proportional terms. During the same period, the population increased by about six million people. Most of the new growth has occurred in neighboring provinces rather than Manila proper. Cavite, Bulacan, and Laguna—provinces to the south, north, and southeast—have all seen major growth.

Such intensive development has taken a serious toll on the Pasig River. With high loads of sewage, industrial effluents, floating garbage, and heavy metals, the river is known as one of the most polluted waterways in the world. However, there are signs that the river may have a cleaner future. The Philippine’s Department of Environment and Natural Resources plans to plant 1.5 billion mangrove trees along a 19-kilometer-stretch of the river. Mangroves can improve water quality by trapping sediments and taking up excess nutrients from the water.