What's the difference between foundation and concealer?

I don't get it why by foundation if you have concealer and vice versa?
And why different colored concealers? Tan concealers......yellow concealers.....green concealers....blue concealers.....
What difference does it really make? :/
9 answers 9