Nick Saban, head coach of the men’s football team at the University of Alabama, is paid more than $7 million annually. He is the highest paid employee of all U.S. workers employed by a local or state government.

In the vast majority of states, college football and basketball coaches are the highest paid public employees. When a millionaire coach is not the state’s top earner, high ranking medical officials or deans at state University-run hospitals and college presidents are usually next in line. 24/7 Wall St. reviewed public records and external sources to identify the highest paid public employee in each state.

College coaching salaries have been on the rise in recent years. According to USA TODAY Sports, which compiled coaches’ salaries used in this ranking, the average compensation package for coaches at major universities and colleges is $1.81 million. This is up by more than 90% since 2006, the first year USA TODAY Sports published its database.

Seven-figure salaries are relatively scarce in the public sector. To earn this level of income at public institutions, private sources are almost always involved. The revenue stream from highly lucrative TV and other media deals and the fact that college athletes are not paid largely explain the exorbitant salaries for coaches.

21. Massachusetts

> Highest paid employee: Derek Kellogg
> Position: College basketball coach
> Salary: $994,000

Roughly 13 years after beginning his basketball career as a point guard for the University of Massachusetts Minutemen, Derek Kellogg returned to his alma mater in 2008 as head coach. Kellogg has a guaranteed compensation of $994,000, about $70,000 more than the next highest paid state employee in Massachusetts.

Comparing salaries of the highest paid public employee in each state reveals that larger states tend to pay their best paid employees larger salaries. This is not directly related to the larger tax base but rather to the bigger universities these states have — and their massive sports programs.

If a state’s best paid public worker is not a head coach, he or she is often still employed by a large university. James H. Page is the chancellor of the University of Maine System; Clay Christian is commissioner of higher education in Montana; and Mark Huddleston is the president of the University of New Hampshire. Each are the highest paid public employees in their states.

To determine the highest-paid public employee in each state, 24/7 Wall St. considered reports of public salaries based on state government payrolls and public documents. All college football and basketball coach salaries are based on USA Today’s consolidated list of NCAA coach salaries, which includes pay for 2015 in the case of football and 2016 in the case of basketball. In the case where a coach received a raise or was recently hired, the more recent available information was used. All data are based on the most recent available information.

Click here to see the highest paid public employee in each state.