Anodizing involves dipping the aluminum into a bath of chemicals and running an electric current through it, which helps to protect the metal against corrosion and makes it easier to adhere color.
FORBES: It's The iPhone 5's Aluminum Case That's Causing Problems For Apple and Foxconn