The accused was arrested and has confessed to the crime, police said (Representational)

The police Friday arrested a man for allegedly bludgeoning five of his family members to death in Uttar Pradesh's Hamirpur district.

Nafees has been arrested for killing his younger brother Raees and four other relatives on Thursday evening.

Senior cop Hemraj Meena said Nafees killed five of his family using a hammer.

The victims have been identified as Raees (27), his wife Roshni (25), daughter Aliya (4), niece Roshni (15) and the 85-year-old grandmother.

"Nafees's father Noorbaksh had gone to attend a marriage function. He informed police after returning from there," Mr Meena said.

"The hammer used in the crime has been recovered. Nafees had confessed to the crime and stated that the property was the reason behind it," the SP said.