As recently as 2008, the Republican candidate for US president, Senator John McCain, had sponsored legislative proposals to use cap and trade to address emissions of carbon dioxide and other greenhouse gases.