NuStar Energy L.P. engages in the terminalling, storage, and marketing of petroleum products. The company also engages in the transportation of petroleum products and anhydrous ammonia. It operates through three segments: Pipeline, Storage, and Fuels Marketing. The Pipeline segment transports refined petroleum products, crude oil, and anhydrous ammonia. The Storage segment owns terminal and storage facilities, which offer storage, handling, and other services for petroleum products, crude oil, specialty chemicals, and other liquids. This segment also provides pilotage, tug assistance, line handling, launch, emergency response, and other ship services. The Fuels Marketing segment is involved in the purchase of crude oil, fuel oil, bunker fuel, fuel oil blending components, and other refined products for resale. As of December 31, 2018, the company had 3,130 miles of refined product pipelines and 2,070 miles of crude oil pipelines in Texas, Oklahoma, Kansas, Colorado, and New Mexico; a 2,150-mile refined product pipeline originating in southern Kansas and terminating at Jamestown, North Dakota; a 450-mile refined product pipeline originating at Marathon Petroleum Corporation's Mandan, North Dakota refinery and terminating in Minneapolis, Minnesota; 2,000 miles of anhydrous ammonia pipelines; and 75 terminal and storage facilities, which offer approximately 88 million barrels of storage capacity. The company has operations in the United States, Canada, Mexico, and the Netherlands. NuStar Energy L.P. was founded in 1999 and is headquartered in San Antonio, Texas.