Texas City is a city in Galveston County in the U.S. state of Texas. Located on the southwest shoreline of Galveston Bay, Texas City is a busy deepwater port on Texas's Gulf Coast, as well as a petroleum-refining and petrochemical-manufacturing center. The population was 51,898 at the 2020 census, making it the third-largest city in Galveston County, behind League City and Galveston. It is a part of the Houston metropolitan area. The city is notable as the site of a major explosion in 1947 that demolished the port and much of the city.