Prevent and treat sunburn by applying and reapplying sunscreen, seeking shade, wearing protective clothing, and using soothing remedies like aloe vera.