In cell migration, cofilin is essential for the formation of lamellipodia and filopodia, which are protrusive structures at the leading edge of the cell. By severing actin filaments, cofilin generates new barbed ends that facilitate the addition of actin monomers, thus driving the extension of these structures. This process is critical for the cell to move forward.