The invention relates to a method for recycling vanadium and molybdenum from a waste petroleum catalyst, and belongs to the technical field of petrochemical industry. The method comprises air-burning and ball-removing, ball-milling, soda roasting-water leaching, aluminum removing, molybdenum precipitating and enriching molybdenum by ion exchange. The method specifically comprises the following steps: firstly, igniting sticky oil in the waste catalyst in air to burn carbon and oils in the waste catalyst; then, oxidizing the vanadium and nickel in the forms of porphyrin compounds in the waste catalyst into vanadium oxide and nickel oxide, converting most of the molybdenum into molybdenum oxide, wherein the waste catalyst subjected to air-burning and oil-removing is more beneficial for crushing, and the crushed waste catalyst and a certain proportion of sodium carbonate are mixed, and are roasted at a high temperature; leaching roasted materials by hot water, dissolving sodium salts of the vanadium and the molybdenum into water to obtain a solution, filtering the solution, introducing the filtered solution into a leaching solution, introducing a little aluminum into the leaching solution, regulating the pH value of the solution to remove aluminum; regulating the pH value of the solution to 8-9, adding ammonium chloride, precipitating and separating out the vanadium in the form of ammonium vanadate; and concentrating vanadium-precipitated solution by adopting an ion exchange process and enriching an ammonium molybdate solution.