A teenager who caused his friend's death by driving dangerously on a country road has been given a two-year prison sentence.

William Sangster, 19, died after 18-year-old Adam Youngson's vehicle struck a tree in Mintlaw, Aberdeenshire, on November 29, 2014.

The High Court in Edinburgh heard how moments before the incident, another car being driven by Scott Neil, 19, came close to the back of Youngson's red Ford Fiesta.

Youngson reacted by accelerating away from Neil's car but Neil broke the speed limit to keep up with Youngson, who had passed his driving test four months earlier.

Youngson, who ignored his passengers' requests for him to drive carefully, lost control of his vehicle, causing it to leave the road.

Mr Sangster, of Auchnagatt, Aberdeenshire, was a back seat passenger in Mr Youngson's car. He was cut free by firefighters but doctors pronounced him dead at the scene. His sister Nicole was also in the car.

On Wednesday, judge Lady Wolffe ordered Youngson to serve two years' detention and banned him from driving for six years.

Neil was ordered to perform 150 hours community service and banned from the road for 18 months.

She imposed the sentences after hearing how Youngson had recently lost his mother and suffered from post-traumatic stress disorder, which had been caused by the collision.

She also accepted Youngson and Neil were both "genuinely remorseful" for their actions.

Lady Wolffe said: "This is a sad and difficult case. You will both have to carry the burden of your actions for the rest of your lives."

Youngson, of Mintlaw, Aberdeenshire, pleaded guilty to causing Mr Sangster's death by driving dangerously on the A950 New Pitsligo to Mintlaw Road near to Aden Country Park.

His co-accused Neil, of Stuartfield, Aberdeen, pleaded guilty to a charge of driving at excessive and inappropriate speeds on the B9030 road.