The purpose of flux is to help create strong solder joints by first cleaning the metal surfaces. Specifically, the goal of the flux is to remove any oxides of the metal surfaces that may interfere with the soldering process causing a poor solder joint to form.