Polarity refers to the distribution of electric charge within a molecule. It occurs due to the differences in electronegativity between the atoms involved in chemical bonds.