Modified cornstalk biochar can reduce ammonia emissions from compost by increasing the number of ammonia-oxidizing bacteria and decreasing urease activity.