Police identified the deceased as Omveer (28) and his brother-in-law Pushpendra (22).
Circle Officer (CO) Praveen Kumar Tiwari said three youths were injured in the accident.
"The injured were taken to the district hospital where doctors declared Omveer (28) and his brother-in-law Pushpendra (22) dead," he said.
He said a youth Omkar Singh sustained serious injuries in the incident and was being treated at the hospital.
"The youths were going to Mainpuri from Delhi to celebrate Holi festival when the accident occurred. The bodies have been handed over to the family after postmortem," he said.
(With UNI inputs)