A wire harness and an electric wire protecting pipe that can prevent holes from being formed by flying gravel while the vehicle is moving and includes a bending pipe portion that can be bent easily. The electric wire protecting pipe is a resin pipe into which electric wires are insertable, and includes a bending pipe portion that is easily bent and is provided with protruding portions and recessed portions that are alternately continuous with each other in an axial direction, and a straight pipe portion that is flat and is not easily bent in the axial direction. A thickness of a lower wall portion that is disposed on a lower side when the electric wire protecting pipe is attached to a vehicle is greater than a thickness of a left wall portion and a right wall portion.