CSS Specificity

What is specificity and how does it work?