As anyone who has ever had a sunburn can attest, summer fun has its downsides. But what is it about the sun's rays that causes skin to burn (or tan)? In the video above, Hank Green, host of SciShow, discuss how melanin and UV rays interact, resulting in tanning or burning—both of which are actually part of your body’s defense mechanism against the sun.