4 way switch (or crossover switch)

Four-way switches have four terminals. This type of switch works in combination with two three-way switches to control electricity to lights from three (or more) locations. They support hot conductors (traveller wires), which receive and transfer electricity from each of the three-way switches.

Animated circuit diagram showing the operation of a 4 way switch

Browse lighting diagrams that use a 4 way switch
You may also be interested to see how a two way switch works
You may also be interested to see how a three way switch works