A method for inhibiting corrosion of a thermal installation by vanadium oxide, wherein the thermal installation comprises a combustion chamber fed with a fuel contaminated with vanadium, with sulphur and possibly with sodium, the method comprising feeding the combustion chamber with boron and with magnesium so that magnesium orthoborate and/or magnesium pyroborate is/are present in the combustion chamber, wherein the sodium molar ratio s=Na2SO4/V2O5, the magnesium molar ratio m=MgO/V2O5 and the boron molar ratio b=B2O3/V2O5 satisfy the equation m≧3+2b−s, thereby inhibiting corrosion of the thermal installation by vanadium oxide.