What gives a sunset its color?

Next time you're watching a sunset on the beach, think about the amazing physics that's bringing you the view.