What is entropy?

What is entropy, and how is it used in building decision trees?