It looks like years of automobile history may be paying off for Michigan again. The state is home to the best drivers in the country, according to a new study by QuoteWizard.

The company ranked the country's best and worst drivers in 2018 by state. To compile the rankings, QuoteWizard sampled incident data from users of its insurance website and "juxtaposed it to Federal Highway Administration fatality data."

It looked at accidents, speeding tickets, DUIs, citations and fatalities from each state.

Michigan came out on top.

"Drivers earn the gold medal thanks to less citations, speeding, and fatalities than last year," according to the study.

However, there's a catch. The study only accounts for insured drivers and Michigan "has plenty of rule breakers," according to the release, which added that one in five Michiganders doesn't have car insurance.

That could be in part because of the high cost of insurance in the state. You may have heard that Michigan has the highest auto insurance rates in the nation, and Detroiters pay the highest insurance rates in the state.

Read more:

Big changes on tax returns could shock filers

Why Michigan is leading retreat on K-12 funding

Michigan was followed by Mississippi and Oklahoma in the rankings.

The state with the worst drivers?

Maine took the title this year after a "drastic rise in traffic citations and fatalities," according to the study. The Pine Tree state saw an increase of more than 1,500 car crashes from 2016 to 2017, according to a Maine report.

South Carolina and Nebraska had the second and third worst drivers in the country, respectively.