The Wheatstone bridge works on the principle of null deflection. When the ratio of resistances in one leg equals the ratio in the other leg, no current flows through the galvanometer, indicating the bridge is balanced.