The incident took place at Govindpura village near Neem Ka Thana in Sikar district, around 150 km from Jaipur.
"The victim had married one Shankar Lal three years ago and was staying at her in-laws house in the village," said a police officer.
She was alone at the house when her husband's cousin Pintu alias Ajay came to visit her, the officer said.
On finding her alone, Pintu tried to rape her, the officer added.
"However, she resisted. When Ajay failed in his attempt, he tried to strangulate her using her stole. Ajay thought she had died when she fell unconscious and ran away from the house," said the officer.
"We traced Ajay and have arrested him for attempted rape and murder," he said.