Moderator WELKER: "Why would you do that?"

BIDEN: "Because the oil industry pollutes significantly."

Shares of some renewable energy companies, including Canadian Solar and SunPower, were up on Friday after Biden said the U.S. should eventually replace oil with solar, wind and other forms of non-polluting power.

TRUMP: "I see. That's a big statement."

BIDEN: "Well, if you'll let me finish the statement because it has to be replaced by renewable energy over time... And I'd stop giving to the oil industry. I'd stop giving them federal subsidies."

While Biden later clarified he didn't want to end the fossil fuel industry, but rather get rid of subsidies for fossil fuels -- Trump immediately pounced.

Trump: "Basically what he's saying is he is going to destroy the oil industry."

Seeing it as a boon to his re-election chances in key battleground states such as Pennsylvania, a major oil and gas producer.

Trump: "Will you remember that, Texas? Will you remember that, Pennsylvania? Oklahoma?"

Biden said his plan for a transition to a more climate-friendly economy would create high-paying jobs and boost U.S. businesses.

Former Texas Governor Rick Perry, who served as energy secretary under Trump, said moving away from oil would kill millions of jobs.

While, Kendra Horn, a Democratic U.S. representative from Oklahoma seeking re-election, distanced herself from Biden, saying on Twitter that oil and gas policy is "one of the places Biden and I disagree."