Sun shirts are designed to protect against ultraviolet light during outdoor recreation. All clothing blocks some UV, but sun shirts are specifically crafted for this purpose, and the best of them provide much more protection than a typical cotton t-shirt.
To filter out UV, sun shirts combine effective materials with intentional weave/knit patterns. Most sun protection shirts are primarily made from polyester, which is rated as a top option for UV protection.