Converting feedstocks of invasive plants into biochar is a new and cost-effective measure for their control, and benefits for the sustainable development of native ecosystems.Spartina alterniflora, an invasive plant widely distributed in coastal wetlands of China, was used to produce biochar. We aimed to analyze howS. alterniflorabiochar properties changed with desalination of feedstocks, pyrolysis temperature, and residence time. Results showed that desalting feedstocks increased biochar pH, stability, porosity, and surface area, but diminished biochar yield and polarity. Pyrolysis temperature positively affected biochar pH, surface area, and pore volume, while it had negative effects on biochar yield, oxygen and hydrogen contents, hydrogen/carbon and oxygen/carbon ratios, pore size, and function groups. However, residence time of pyrolysis had slight effects on biochar properties. The results are valuable for optimizing pyrolysis temperature and pretreatment measure of feedstocks, to tuneS. alterniflorabiochar properties for specific environmental usage.