The woman glanced outside her window at around 9pm on Wednesday 29 September and was shocked to see a stranger inside her Mercedes A45 - his face illuminated by the interior lights.
Thinking fast, the nursing student managed to grab her keys and lock the car, in turn shutting him inside until police arrived.
The student, from Buckhaven in Fife, continued to re-lock the luxury car - which costs up to £57,000 - every time he tried to get out, and eventually the bloke gave up, seemingly accepting his fate as he sat still.
Several police officers then arrived at the scene, and were seen putting the man in handcuffs.
The owner said she only clocked something was up when her dogs started to bark, having heard the man outside.
She filmed from inside her home as the man reached into the glove compartment and tried the ignition button, while lights repeatedly flashed on and off.
She shared the videos on Facebook the following day, urging others to be 'careful'.
She wrote: "A guy just tried to steal my Mercedes A45, keep an eye out.
"At 9pm tonight I heard a strange male voice outside my house and a car door shutting.
"Next thing you know my dogs went mental, barking constantly. I looked out and down my drive to find a random guy in my car trying to start it and steal it.
"I went to phone 999 straight away for the police and kept on locking him in my car whenever he tried to get out, about 100 times.
"Luckily the police came fast and arrested him as I was so shaken I'm just 21 and living by myself.
"This was in the Buckhaven area. Please be careful, feel free to share."
Her post has since racked up hundreds of likes and shares on social media, with many people commenting to say how shocked they were by the brazen act.
One person wrote: "Omg that's so bad. I'm glad you're okay and that he's been caught."
Someone else said: "I am so sorry this happened to you! I hope you're okay, how scary."
A third commented: "Omg what a scum of a guy. Good you kept locking him in and luckily police came in time! Hope you're okay."
A fourth added: "What a fright you must have got. That's scary, I'm glad you are okay though and that they have been caught."
LADbible has contacted Police Scotland for comment.
Chosen for YouChosen for You
Most Read StoriesMost Read