A process for removing sulfur, nitrogen or metals from an oil feedstock (such as heavy oil, bitumen, shale oil, etc.) The method involves reacting the oil feedstock with an alkali metal and a radical capping substance. The alkali metal reacts with the metal, sulfur or nitrogen content to form one or more inorganic products and the radical capping substance reacts with the carbon and hydrogen content to form a hydrocarbon phase. The inorganic products may then be separated out from the hydrocarbon phase.