Supermarket chains Asda and Aldi are to ban the sale of energy drinks to under 16s.
The ban will come in from early March following calls from campaigners who say the drinks are bad for children.
Customers buying the drinks must be willing to show their ID.
Asda says the age limit will apply to 84 high-caffeine drinks from March 5 while Aldi has said it will apply it "to all caffeinated energy drinks" from 1 March.
The move follows calls by campaigners for a complete ban on energy drinks, and it comes weeks after MP Maria Caulfield asked Prime Minister Theresa May to consider a UK-wide ban.
Both retailers cited the growing concerns about the effect of energy drinks on young people as a key motive in introducing the ban.
Oliver King, Aldi's managing director of corporate responsibility, said: "We are introducing this age restriction in response to growing concern about the consumption of energy drinks among young people."
Asda's chief customer officer Andrew Murray said the retailer was working hard to "ensure we get the balance right between offering choice and doing the right thing".
He added: "We have listened to our customers and want to take a leading position in this area to support parents and teachers in limiting young people's access to high caffeine drinks."
The NASUWT teaching union, which called for schools to ban energy drinks from their premises in December 2017, said they were pleased with Asda and Aldi's decision.
General secretary Chris Keates said: "We hope this will continue the momentum for our campaign to see concerted action to regulate sales of energy drinks."
She added: "The very high levels of caffeine and sugar these drinks contain impact adversely on pupil behaviour in schools and teachers are left to deal with the fallout.
"There is a chronic lack of awareness about the effects and long-term health impacts of these drinks which many pupils and parents think are just another soft drink."
Celebrity chef Jamie Oliver is also among those who have campaigned for age restrictions to prevent young children drinking energy drinks excessively.
He responded enthusiastically to Asda and Aldi's decisions, saying they "have done the right thing" and urged other supermarkets to follow.