Born from a violent revolution, the U.S. constitution ensures that gun ownership is a fundamental right. Today, there are more than 7.5 million gun stores in the United States, and 29.1% of American adults own at least one firearm of some kind. While the second amendment grants U.S. citizens the right to own guns, federal laws also restrict certain people from buying firearms.

All states have to abide by federal laws surrounding gun ownership, but these laws are limited and each state can expand or further limit these laws. Though no state has especially strict gun laws compared to many other European and high income nations, some come close. To determine the states where it is hardest to buy a gun, 24/7 Wall St. reviewed state gun laws to identify states with the most restrictive laws such as universal background checks and licensing requirements.

Federal regulations require individuals to meet certain criteria before they can purchase a firearm from a licensed dealer. Licensed dealers are required to conduct background checks on gun buyers and are not allowed to sell firearms to anyone who is a fugitive from law, has been declared mentally “defective” to the extent that he or she is incapable of managing his or her own affairs, is an illegal alien, or has been convicted of misdemeanor offense of domestic violence.

However, background checks are not required by federal law for firearms purchased from private sellers, a technicality commonly referred to as the gun show loophole. To many, this loophole is especially problematic as private sales account for an estimated 40% of all gun sales nationwide.

5. Illinois

> Universal background check: Yes
> Gun ownership rate: 26.2% (13th lowest)
> Annual firearm death rate: 9.2 per 100,000 (12th lowest)
> Required safety training or exam: No

Illinois’ biggest city, Chicago, has been making headlines in recent years for gun violence epidemic. Due in part to the some 2,900 shootings in the city last year, there were 468 murders in Chicago in 2015. At the end of March 2016, there were already twice as many shootings in the city as there were at the same point the previous year. The scourge of gun violence in Chicago comes despite some of the tightest state-imposed gun restrictions in the country. For example, Illinois has taken measures to close the gun show loophole by requiring unlicensed sellers at gun shows to contact State Police and have them conduct a background check on anyone purchasing a firearm.

According to a report released by Mayors Against Illegal Guns, firearms used in crimes in Illinois are far more likely to be from out of state than is typical across the country. Data from the report show that Illinois imports four times as many guns used in crime than it exports.

Due to the perceived inadequacy of federal regulations, some states have enacted uniquely comprehensive gun purchasing regulations. For example, 12 states, including many on this list, have addressed the gun show loophole, either by requiring a permit to purchase a gun, contingent upon the successful completion of a background check, or by requiring private sellers to contact local law enforcement to run a background check prior to the sale. An additional six states have effectively closed the gun show loophole for handgun purchases only.

While many states have enacted laws to ensure gun buyers undergo a background check, many also expanded on the federal government’s criteria. With the exception of Rhode Island, every state on this list prohibits anyone convicted of a gun-related misdemeanor from purchasing a firearm. In addition, the majority of states on this list restrict individuals who have been treated for alcohol or drug abuse from buying a gun.

A handful of states also take measures to ensure gun buyers are familiar with safe use and handling of a firearm. California, Connecticut, Maryland, Massachusetts, and Rhode Island all require some form of safety training or exam before an individual can obtain a license to buy any kind of firearm. Hawaii requires training only for handguns prior to purchase.

The connection between firearm regulations and gun-related death rates is controversial in the United States. However, it is indisputable that states with the strictest gun laws also tend to have fewer than average gun deaths. Except for Delaware, every state with the strictest gun purchasing laws has a lower firearm-related death rate than the national rate of 10.5 deaths per 100,000 people. Including Hawaii, the state with the fewest gun deaths per capita, six states on this list have a firearm death rates less than half the corresponding national rate.

To identify the hardest states to buy a gun, 24/7 Wall St. reviewed gun laws in each state as catalogued by the Law Center to Prevent Gun Violence. To compile our list, considered whether a state imposed: 1. universal background checks, 2. license requirements for handgun purchases, or 3. firearm purchasing limitations on at least four of the following five groups: individuals convicted of gun-related violent crimes, the dangerously mentally ill, drug abusers, alcohol abusers, and certain juvenile offenders. Only the states that met at least two out of the three qualifications made the list. Population figures came from the U.S. Census Bureau’s 2014 American Community Survey. Firearm-related deaths data came from the Centers for Disease Control and Prevention. Gun ownership rates for each state as of 2013 were obtained from a study published in 2015 from the Mailman School of Public Health at Columbia University.

Click here to see the hardest states to buy a gun.