Now playing
01:20
How dangerous is that sunburn?
CNN
Now playing
02:13
Why losing weight might protect you from Covid-19
A selection of fruit ready to eat are displayed at a fruit and vegetable shop on April 12, 2016 in Lille, northern France. / AFP / DENIS CHARLET        (Photo credit should read DENIS CHARLET/AFP/Getty Images)
DENIS CHARLET/AFP/AFP/Getty Images
A selection of fruit ready to eat are displayed at a fruit and vegetable shop on April 12, 2016 in Lille, northern France. / AFP / DENIS CHARLET (Photo credit should read DENIS CHARLET/AFP/Getty Images)
Now playing
01:27
New diet can save lives and the planet, study says
this is your brain on pain health orig_00001025.jpg
CNN
this is your brain on pain health orig_00001025.jpg
Now playing
01:39
This is your brain on pain
Now playing
01:42
Here's why you can't stop eating pizza, ice cream and chocolate chip cookies
Now playing
01:10
Trouble sleeping? This may be why
CNN
Now playing
02:40
The reality of wine's health benefits
shutterstock
Now playing
01:49
These foods aren't as healthy as you think
Americans are still too fat according to a new study from JAMA. Two in three of Americans are registering as overweight or obese.
Shutterstock
Americans are still too fat according to a new study from JAMA. Two in three of Americans are registering as overweight or obese.
Now playing
01:15
What is obesity?
CNN
Now playing
01:17
Why your BMI matters
LONDON - MAY 16:  In this photo illustration a cigarette is seen burning on May 16, 2007 in London. Businesses and shops are gearing up for the introduction of the smoking ban on July 1 in England after similar bans have been introduced in Ireland, Scotland and Wales.  (Photo Illustration by Bruno Vincent/Getty Images)
Bruno Vincent/Getty Images Europe/Getty Images
LONDON - MAY 16: In this photo illustration a cigarette is seen burning on May 16, 2007 in London. Businesses and shops are gearing up for the introduction of the smoking ban on July 1 in England after similar bans have been introduced in Ireland, Scotland and Wales. (Photo Illustration by Bruno Vincent/Getty Images)
Now playing
01:07
What tobacco does to your health (2017)
Photo Illustration/Thinkstock
Now playing
01:12
World blood pressure rises (2016)
Woman pointing to area on mammogram x-ray, close-up
Getty Images/File
Woman pointing to area on mammogram x-ray, close-up
Now playing
01:19
Breast cancer: Know the facts
A surgeon sitting in front of screens of a Focal One device performs a robot-assisted prostate tumorectomy using ultrasound imaging on April 10, 2014 at the Edouard Herriot hospital in Lyon, center France. Focal One is the first robotic HIFU (high intensity focused ultrasound) device dedicated to the focal approach for prostate cancer therapy. According to EDAP TMS SA, a leader in therapeutic ultrasound, it combines the three essential components to efficiently perform a focal treatment: state-of-the-art imaging to localized tumors with the use of magnetic resonance imaging (MRI) combined with real-time ultrasound, utmost precision of robotic HIFU treatment focused only on identified targeted cancer areas, and immediate feedback on treatment efficacy utilizing Contrast-Enhanced Ultrasound Imaging. AFP PHOTO / JEFF PACHOUD        (Photo credit should read JEFF PACHOUD/AFP/Getty Images)
JEFF PACHOUD/AFP/AFP/Getty Images
A surgeon sitting in front of screens of a Focal One device performs a robot-assisted prostate tumorectomy using ultrasound imaging on April 10, 2014 at the Edouard Herriot hospital in Lyon, center France. Focal One is the first robotic HIFU (high intensity focused ultrasound) device dedicated to the focal approach for prostate cancer therapy. According to EDAP TMS SA, a leader in therapeutic ultrasound, it combines the three essential components to efficiently perform a focal treatment: state-of-the-art imaging to localized tumors with the use of magnetic resonance imaging (MRI) combined with real-time ultrasound, utmost precision of robotic HIFU treatment focused only on identified targeted cancer areas, and immediate feedback on treatment efficacy utilizing Contrast-Enhanced Ultrasound Imaging. AFP PHOTO / JEFF PACHOUD (Photo credit should read JEFF PACHOUD/AFP/Getty Images)
Now playing
01:21
What is prostate cancer?
Argosy
Now playing
00:53
What is Parkinson's disease?
Now playing
01:38
How Alzheimer's destroys the brain
(CNN) —  

Sunscreen does a good job of protecting our skin, but it may not be so good for marine life.

Research studies have found that chemicals found in some popular sunscreen products are harmful to ocean ecosystems. And now, after state lawmakers passed a bill Tuesday, Hawaii is set to become the first state in the US to ban the sale of sunscreens that contain oxybenzone and octinoxate.

The chemicals that help us by filtering UV rays are causing severe damage to Hawaii’s marine environment, according to a study by Haereticus Environmental Laboratory, a nonprofit scientific organization. They show up in coastal waters after beachgoers swim in the ocean and via discharges from wastewater treatment plants.

The study found that the chemicals seep into young coral and contribute to coral bleaching, which occurs when an increase in sea temperatures kills the algae that grows inside coral, turning reefs white and eliminating nutrients that sustain other marine life.

About 14,000 tons of sunscreen enter the world’s reefs every year, according to a 2015 paper published in the journal Archives of Environmental Contamination and Toxicology.

Hawaii’s legislation prohibits the sale and distribution of any sunscreen that contains the two chemicals – oxybenzone and octinoxate – without a prescription from a licensed physician.

WATCH: Discover how scientists and government officials are trying to rescue coral reefs

“Hawaii is the first state in the nation to pass a measure of this magnitude. The world was watching. We delivered. Preserve and protect our ocean environment!” said state Sen. Will Espero on Twitter after the bill passed in his chamber.

The bill now goes to the office of Hawaii Governor David Ige. If he signs it, the law would go into effect January 1, 2021.

In an effort to protect Hawaii’s reefs, Hawaiian Airlines last month began offering passengers free samples of natural sunscreens without those ingredients.

The airline is also encouraging its passengers to learn more about Hawaii by showing a 11-minute documentary on each flight about the environmental challenges affecting reefs.