Rescuers in southern Spain are racing against the clock to save a 2-year-old boy who fell down a more than 330-foot-deep well — after the discovery of his hair confirmed he was trapped inside.

The boy, Julen Rosello, vanished Sunday when he wandered away while his parents prepared a countryside lunch near Totalan, a town northeast of Malaga.

The parents — who in an especially tragic twist had a young son who died two years ago — suspected that Julen slipped down a waterhole 10 inches wide. The hair samples that rescuers took from soil inside the shaft confirmed their fears Wednesday.

“We had a perfect view of how he fell through the hole,” said dad Jose Rosello, according to BBC News.

The Rosellos’ 3-year-old son, Oliver, died in 2017 from heart problems during a family walk on their local beach.

The government’s representative in the Malaga province, Maria Gamez, said DNA from Julen’s hair — which was compared to DNA from a bottle he drank out of — gave rescuers “scientific evidence that the minor is there.”

But the toddler may be stuck in a deeper section than machinery and surveillance equipment have so far been able to reach. Hardened soil and rocks believed to have been dragged down when the boy fell have blocked workers from seeing beyond 240 feet into the hole.

They have, however, spotted a small bag of candy inside.

Workers on Thursday were busy digging two tunnels — one parallel to the well and another at an angle aiming to reach him — and carefully removing soil from the main hole.

They expected to be able to reach the deepest part within “24 to 48 hours.”

Meanwhile, the boy’s frantic parents are holding out hope that they’ll see him again.

“It feels like we have been waiting for months,” Jose Rosello told reporters Wednesday. “We are not going to give up … We have the hope that an angel is going to show up for my son to come out alive.”

With Post wires