Sunburn is a common condition that occurs when a person has been out in the sun for too long without protection. Sunburn can be very mild (reddish skin that may feel a little warm to the touch) or severe (blistering). The best way to deal with sunburn is to protect your skin when you know that you are going to spend some time under the sun. You can do so by wearing protective clothing - long sleeves and long pants - or by applying liberal amounts of sunscreen or sunblock lotion or spray.
If you already have gotten sunburned, though, the treatment will depend on the severity of the burn. Mild sunburn is easily treated. There usually is no significant pain - only a mild sense of discomfort. You can ease the discomfort using commercially available gels and lotions that cools the skin. Alternatively, you can get hold of some aloe vera - the plant itself - and apply the juices to the affected area. Mild sunburn will go away rather quickly.
The same treatment can be used for more severe sunburn - the kind that makes you look like cooked lobster. In this case, you will feel more pain and you might not be able to stand contact in the affected areas. One thing that you can do is to take a cool bath as this will alleviate the pain and lower the skin temperature. Make sure that you do not apply soap, though.
It is also important that you make sure that you keep yourself hydrated. This will help keep the skin moist and hasten the healing process. Drink a lot of water and fruit juices and stay away from dehydrating products such as alcohol.