The U.S. expanded its oil production this year by the most since the first commercial well was drilled in 1859, upending a belief that Americans were increasingly hooked on foreign crude.

Domestic output grew by a record 766,000 barrels a day to the highest level in 15 years, government data show, putting the nation on pace to surpass Saudi Arabia as the world’s largest producer by 2020.