Power comes into the first switch from the power source. Two wires called "travelers" connect the first switch to the second one. Then power leaves the second switch to go to the light.