Do Gargoyles on medieval cathedrals have a practical function?

Gargoyles, the grotesque statues that decorate medieval cathedrals, and the medieval-influenced architecture of some universities, are not merely decorative.

A gargoyle is technically a waterspout that projects from a roof gutter to throw rainwater clear of a building.

The term is applied more loosely to any grotesquely carved figure.