AbstractInsect community structures and biological interactions vary with the distance from the mainland to islands. Gall inducers are key organisms in local arthropod communities because their galls harbor diverse arthropods. We investigated the parasitoid community of a gall‐inducing cecidomyiid Schizomyia sasakii on the Izu Peninsula and the Izu Islands, Japan. We examined relationships between parasitism by Inostemma sp. and Torymus hirtipennis, and gall characteristics, and analyzed the directional selection on gall characteristics induced by S. sasakii in each locality. The species richness of parasitoids on the Izu Islands decreased with the distance from the Izu Peninsula to each island, and area of respective islands. Inostemma sp. preferably attacked large galls on Ohshima Island, and T. hirtipennis tended to attack relatively small galls in the Izu Peninsula. Directional selection on gall characteristics of S. sasakii favored the induction of larger galls and thicker tissues by S. sasakii on Ohshima Island. In contrast, no directional selection was detected in the gall characteristics on Hachijojima Island. The number of alternative host species of parasitoid may affect variation in parasitoid richness of S. sasakii on distant and small islands, because the species richness of gall midges is necessary to maintain local parasitoid populations. Our study supported the ovipositor limitation hypothesis for the torymid species, related to gall size. The directional selection of parasitoid attacks on the Izu Islands may act to favor the induction of large and hypertrophic galls by S. sasakii to avoid the parasitoids.