ATLANTIC BEACH, N.C. — The president of the North Carolina AFL-CIO for the past 20 years is retiring, and the longtime second-in-command of the state umbrella organization for unions is succeeding him.

Delegates to the state AFL-CIO convention elected MaryBe McMillan unanimously Friday as president. James Andrews chose not to seek re-election after more than 40 years in the labor movement. McMillan has been secretary-treasurer since 2005. The Hickory native has led the federation’s day-to-day operations. The group decided previously to consolidate the two positions this year.

Gov. Roy Cooper addressed the convention Thursday and gave the 68-year-old Andrews the Order of the Long Leaf Pine, the state’s highest civilian honor.

There are more than 100,000 union members in North Carolina, with the vast majority in unions affiliated with the state AFL-CIO.