The invention discloses a method for treating sludge by ultrasonic high-temperature treatment and corn straw adding. The method has the advantages that the urban sludge is compositely treated by the ultrasonic waves, high temperature and expanded corn straw powder, the operation is favorable for industrialized control, the chemical reagent is not used in the whole process, the treated sludge does not contain any chemical component, the safety and non-toxicity effects are realized, the use range of sludge is widened, the sludge can be used for preparing fertilizer, and also manufacturing feed and feed additive and preparing an earthworm culture medium, and the injury to a human body via the food chain circulating is avoided; the wastes of corn straw and the like are utilized, the low-carbon and environment-friendly effects are realized, in comparison with other straw, the content of fiber is higher in the corn straw, and the content of lignin is lower, the corn straw is more suitable for preparing the expanded adsorbing structure, the filtering and dewatering property of the sludge can be obviously improved, the sludge is favorably recycled, and the good economic benefit is realized.