NuStar Energy L.P. engages in the terminalling, storage, and marketing of petroleum products in Texas. 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, 2017, the company had 3,130 miles of refined product pipelines and 1,930 miles of crude oil pipelines in Texas, Oklahoma, Kansas, Colorado, and New Mexico; a 1,920-mile refined product pipeline originating in southern Kansas and terminating at Jamestown, North Dakota; a 450-mile refined product pipeline originating at Andeavor's Mandan, North Dakota refinery and terminating in Minneapolis, Minnesota; 2,000 miles of anhydrous ammonia pipelines; and 81 terminal and storage facilities, which offer approximately 96 million barrels of storage capacity. The company has operations in the United States, Canada, Mexico, the Netherlands, and the United Kingdom. Riverwalk Logistics, L.P. serves as the general partner of the company. NuStar Energy L.P. was founded in 1999 and is headquartered in San Antonio, Texas.