Is tanning an increase of melanin, or skin burning?

Both. Tanning is your skin's way of telling you it is absorbing too much sunlight, and it's trying to protect itself from sunburn and skin cancer by making extra melanin to block the ultraviolet rays. You can help by applying a good broad-spectrum sunscreen lotion (spf 50 or higher) every morning.