The shale revolution in oil and natural gas development transformed the United States into the world's leading energy producer and a net exporter.