Why does the temperature drop when you go up

Why does the temperature start decreasing when we go up, why does it start feeling cold? Know interesting science facts

We can see the sun in the sky, then why does the temperature start decreasing…