Additional District Sessions Judge Chandra Bhushan Singh has also imposed a fine of Rs 25,000 on each of the accused, Dilshad and Imran, after holding them guilty of abducting and raping the 17-year-old girl.
According to prosecution, the girl was abducted and raped in Khatoli town of the district on December 24, 2006.
In another case, Rajiv Kumar Verma was convicted and sentenced to life imprisonment for burning his wife alive over dowry.
District Additional Sessions Judge Ghanshyam Pathak also imposed a fine of Rs 4000 on the accused.
Police registered a case against five persons, including Rajiv Verma, the court acquitted the four accused for lack of evidence.