Had Oregon Gov. John Kitzhaber (D) finished his term in office, he would have become the second longest-serving governor in U.S. history.

Kitzhaber, who announced his resignation Friday, is tied for 20th on a list of longest-serving governors nationwide maintained by Eric Ostermeier, a research associate at the University of Minnesota Humphrey School’s Center for the Study of Politics and Governance.

He and California Gov. Jerry Brown (D) had served 4,399 days in office through Jan. 20. Current Iowa Gov. Terry Branstad (R) served 7,313, making him the longest-serving governor.

Kitzhaber is also Oregon’s longest-serving governor and its first to step down due to scandal or alleged wrongdoing, Ostermeier finds. Secretary of State Kate Brown will replace him on Wednesday, making her the nation’s first openly bisexual governor.

Here’s the list of the nation’s 20 longest-serving governors, as of Jan. 20.