In situ aerobic composting eliminates the toxicity of Ageratina adenophora to maize and converts it into a plant- and soil-friendly organic fertilizer.