Additional sessions judge Virender Bhat allowed the accused, who was in custody since February 6, to walk free after observing that the woman who was the star witness in the case was not "available before this court for her testimony".
"The prosecutrix (woman) was the star witness for the prosecution. However, she could not be produced by the IO (investigating officer) before this court for her testimony despite sufficient opportunities," the judge noted.
The court said that the IO made a statement that her efforts to trace the whereabouts of the woman went in vain.
The man, who had employed the victim as a labourer at one of his construction sites here, was arrested by police on her complaint alleging that she was raped by the accused at a under-construction building here in December 2013.
The woman had told the police that since the accused had helped her in getting a rented accommodation here, he used to visit her on a regular basis.