Dashcam footage has captured the terrifying moment a driver came within inches of a head-on collision with a lorry.
The shocking video captured by Gordon Donaldson shows a Ford Focus overtaking an HGV on the A96 at West Seafield
But when the dual carriageway comes to an end the driver puts his life on the line by completing the manoeuvre despite a lorry coming the opposite direction.
The Focus straddled the middle of the busy road in an attempt to squeeze between the two HGVs but ran out of room.
Debris from the car littered the road after it scraped the edge of one of the vehicles.
Motorists were quick to condemn the driver after the video was uploaded on social media while others agreed they were lucky not to suffer serious injuries.