Macrophage recruitment to the injured nerve initiates a cascade of events, including myelin debris clearance and nerve trophic factor secretion, which contribute to proper nerve tissue repair. However, the mechanism of macrophage recruitment is still unclear. Here, by comparing wild-type with Mlkl and Sarm1 mice, two mouse strains with impaired myelin debris clearance after peripheral nerve injury, we identify interleukin-17B (IL-17B) as a key regulator of macrophage recruitment. Schwann-cell-secreted IL-17B acts in an autocrine manner and binds to IL-17 receptor B to promote macrophage recruitment, and global or Schwann-cell-specific IL-17B deletion reduces macrophage infiltration, myelin clearance, and axon regeneration. We also show that the IL-17B signaling pathway is defective in the injured central nerves. These results reveal an important role for Schwann cell autocrine signaling during Wallerian degeneration and point to potential mechanistic targets for accelerating myelin clearance and improving demyelinating disease.Copyright © 2024 The Author(s). Published by Elsevier Inc. All rights reserved.