Gary Mahn, director of the Idaho Department of Commerce, has announced he will resign from the position at the end of the year.