Which layer protects earth from harmful rays of the Sun?

Which layer protects earth from harmful rays of the Sun?

کون سی تہہ زمین کو سورج کی مضر شعاعوں سے بچاتی ہے؟
Explanation

The ozone layer protects the Earth against most UVB coming from the sun.