A 14-year-old Ajax, Ont. boy too young to possess a driver's licence purchased the Mazda MX-6 involved in a single-vehicle crash that killed two of his teenaged friends on the weekend.

The boy, who can't be named under the Youth Criminal Justice Act, bought the car in secret for $400 last Friday, his classmates told CTV Toronto.

Durham police believe the boy paid for the vehicle and registered it using an older person's name. Police would not reveal what name was used to register the vehicle.

The youth now faces two counts of criminal negligence causing death and appeared in court on Tuesday. He was released on $10,000 bail.

Family members told CTV's Matet Nebres they are very upset, and they didn't know anything about the car.

After making his secret purchase, the boy drove to his private school located in rural Ajax, just east of Toronto, and picked up two friends for a Sunday drive.

Witnesses told police that a Mazda MX-6 was travelling at a high rate of speed southbound on Audley Road on Sunday morning when it lost control trying to pass another car and veered off the road.

The vehicle crashed through a fence and rolled over at least three times, coming to rest in a field, Durham Regional Police said. The crash killed two 15-year-old passengers.

Premier Dalton McGuinty said the province will look into what it can do to keep unlicensed drivers off the road.

Transportation Minister Jim Bradley called the accident an unfortunate tragedy.

"No 14-year-old can drive a car in the province of Ontario on our roads. They cannot obtain a licence for that purpose and it is illegal to do so," he reiterated.

While it is illegal to drive without a driver's license in Ontario, it is not illegal for a minor to purchase a car.

MPP Bob Runciman, interim Leader of the Opposition, said the case has exposed "a loophole that needs to be closed very quickly."

While the law regulates car dealers, it doesn't affect private sales, meaning the seller doesn't have to check whether the buyer has a driver's licence.

A 15-year-old boy from Etobicoke, who was a passenger, was ejected in the crash. He was pronounced dead at the scene.

Another passenger, a 15-year-old from Laval, Que., was also pronounced dead at the scene.

The 14-year-old driver, a boy from Ajax, was treated for minor injuries and later released.

Speed and a lack of driving experience were cited as factors in the crash.

The two victims, both students at an Islamic private boarding school, were laid to rest on Monday, one in Etobicoke and the other near Montreal.

In Ontario, people can apply for a learner's permit once they are 16 years old but are not permitted to drive without an experienced driver present until at least eight months after they receive their permit.

With reports from CTV's Matet Nebres and Janice Golding and files from The Canadian Press