If oil was made illegal tomorrow, society would collapse.
Supply chains would collapse, artificial fertilizer would not be made, crops would die, massive famine would set in, medicine would not be able to be made, power generation would stall, including emergeny generators, and vast numer of people would die globally.
Congratulations, who ever makes oil illegal, will be responsible for the biggest mass death globally ever.