When walking, the frictional force acts in the forward direction on the foot that is in contact with the ground. Your back foot pushes backward against the ground, and by Newton's third law, friction pushes forward on that foot, propelling you forward. Without this forward friction, walking would be impossible as your foot would just slip backward.