What is the idea of the lesser of two evils?

The idea is that you have two choose between two (or more) options, neither of which is ideal.