Riley studied the plague of grasshoppers that invaded many Western States between 1873 to 1877. He convinced the United States Congress to establish the United States Entomological Commission, which included a Grasshopper Commission, to which Riley was appointed chairman.