The sun emits UV rays as a type of electromagnetic radiation, and these wavelengths are not visible to the human eye. However, they create a significant risk of skin cancer, and there are a couple types of UV rays that you need to protect yourself from.