A four-year-old girl was allegedly raped by her neighbour in Bhilwara district on Sunday, police here said.
The accused, Hanuman Meghwal (40), raped her by taking her to his room when her parents were away for labour work, they said.
When the incident came to light, local people assaulted the accused, who was in an inebriated state, and injured him, they said.
The police have admitted the accused and the victim to a hospital.
A case has been registered against Meghwal and an investigation is underway, police said.