Fertilizers and herbicides are two vital components of modern agriculture. The imminent danger of phosphate reserve depletion and multiple herbicide tolerance casts doubt on agricultural sustainability in the future. Phosphite, a reduced form of phosphorus, has been proposed as an alternative fertilizer and herbicide that would address the above problems to a considerable extent. To assess the suitability of a phosphite-based fertilization and weed control system for rice, we engineered rice plants with a codon-optimized ptxD gene from Pseudomonas stutzeri. Ectopic expression of this gene led to improved root growth, physiology and overall phenotype in addition to normal yield in transgenic plants in the presence of phosphite. Phosphite functioned as a translocative, non-selective, pre- and post-emergent herbicide. Phosphite use as a dual fertilizer and herbicide may mitigate the overuse of phosphorus fertilizers and reduce eutrophication and the development of herbicide resistance, which in turn will improve the sustainability of agriculture.