What is the main cause of mirages?

What is the main cause of mirages?