Three teenagers were killed while taking selfies on a railway track in Haryana's Panipat on Wednesday.
Another teen managed to jump to safety before the accident, a police official told news agency AFP.
"The victims were busy taking selfies and when they saw a train approaching, they jumped to a second track without realising another train was coming on that," MS Dabas told AFP.
"One of them saved his life as he jumped on the other side of the track."
The group had come to Panipat to attend a wedding. Two of those killed were 19 and the third was 18.
Experts warn that youngsters obsessed with social media are going to extreme lengths in order to post selfies seen as daring and risky.
A study last year by researchers from the All India Institute of Medical Sciences (AIIMS) said 259 people across the world had died while taking selfies between 2011 and 2017.
The highest number of incidents and selfie deaths were reported in India followed by Russia, United States, and Pakistan, the study said.
In 2017, three students were killed on a railway track in Karnataka, while a man died in Odisha after an elephant wrapped its trunk around the man and crushed him to death as he tried to take a selfie with the animal.
Last year, Railways Minister Piyush Goyal took to Twitter to warn people against risking their life for the sake of photographs.
Nurse Raped, Killed On Way Home, Body Found 9 Days Later In UP Rahul Gandhi's Seat At Red Fort Triggers Fresh Congress Attack On BJP "Don't Expect Anything From Me": Kolkata Hospital's New Principal Loses Cool Left, BJP, Creating Unrest: Mamata Banerjee On Midnight Attack At Hospital 'Don't Club Us With Others,' Says Manipur's Thadou Tribe, Waits For Peace Plan More Monkey Pox Cases Likely To Hit Europe Soon, Says WHO Track Latest News Live on NDTV.com and get news updates from India and around the world.