Police said the family was asleep when the man broken into the house and made his way to the girl’s bedroom.
The burglar then attacked the family’s daughter, who is under 13, and repeatedly raped her in her own bed.
Awoken by her screams, her dad then rushed to help and found alleged rapist standing over her.
He managed to wrestle the attacker and held him down until police arrived at the property in Perth, Australia.
Daniel Altieri has been charged with two counts of rape and one count of attempted rape.
The hero dad and daughter have not been named to protect their identities.
“My thoughts are with the victim and the family”
Assistant commissioner Alan Morton
Western Australia’s Acting Assistant Commissioner Alan Morton described the incident as “traumatic”.
“Shortly after the commission of the sexual assault the father located the offender in the premises and detained the offender until police arrived,” he said.
“He was conveyed to hospital to ensure any medical attention was provided. He was released shortly after and deemed fit to be in police custody.
“As a senior police officer, as a member of the community and as the father of a young child myself, my thoughts are with the victim and the family.”
Altieri, 29, has been charged with two counts of aggravated sexual penetration of a child under 13 and attempted sexual penetration of a child under 13.
He has also been charged three counts of aggravated indecent dealing of a child under 13, aggravated burglary and threaten to kill.
Altieri did not apply for bail in Perth Magistrates Court today and will appear again on March 18.
“Police haven’t revealed the age of the girl or the suburb where the assault allegedly took place to protect the victim’s identity,” a police spokesperson said.