This work describes the use of CRISPR-Cas9 genome editing technology to knockout endogenous gene OsABCG15 followed by a modified Agrobacterium-mediated transformation protocol to produce a stable male-sterile line in rice.