Surfactant works more effectively in small alveoli than in large alveoli, thus opposing the normal tendency of small alveoli to collapse into large alveoli (per Laplace's law, which states that in an elastic cavity, pressure decreases as volume increases).