What does 'Stem the tide' mean?

If people try to stem the tide, they are trying to stop something unpleasant from getting worse, usually when they don't succeed.

See also: