Kinetics and electrochemistry

What is the primary function of a salt bridge in a galvanic cell?

Two beakers containing separate half-cells connected by a wire and a U-shaped salt bridge.
A salt bridge connects the half-cells while the external wire provides the electron pathway.