The 40-year-old victim was pushed to the ground and assaulted on Merksworth Way in Paisley, Renfrewshire, at about 02:20 on Sunday.
After the attack, the woman was helped by the residents of a nearby house.
Police said a 38-year-old man had been arrested in connection with the incident. He is expected to appear at Paisley Sheriff Court.
The woman was taken to the Royal Alexandra Hospital in Paisley and treated before being released.
A man has been arrested after a woman was raped as she walked home in the early hours of Sunday morning.