His resignation will go into effect on Dec. 31.