The myelin sheath acts as an insulating layer around the axons of some neurons, enabling faster transmission of nerve impulses and preventing the signal from dissipating.