This startling dashcam footage from Australia shows a Honda Civic driver cross a solid white line in an attempt to overtake a string of vehicles, with only the quick-thinking of an oncoming truck driver preventing what would have been a disastrous outcome.

The video was captured on the Albany Highway in Western Australia.

The clip shows the Civic sedan, with a P-plate driver (the holder of a provisional licence) at the wheel, come speeding past the camera-equipped vehicle after crossing a solid line.

The driver pushes on in a bid to get past a Toyota Hilux and another vehicle up ahead, but is seemingly not bothered by the large oncoming truck bearing down on it. The driver of said truck is then forced off the road to avoid what would have been a nasty head-on collision. Boy, that was close.

Watch the footage above, but be warned that it contains some strong language?