If you have been in the sun too long, you may develop heatstroke or dehydration. A bad sunburn can get infected. Long term, sunburn increases your risk of developing skin cancer, including melanoma. To prevent skin cancer, it’s particularly important to prevent children getting burnt. A lot of sunburns can make your skin age and get wrinkly.