Rusting chain. What is the cause?

What are the tricks if your chain has rusted but is not old at all to get it back to tip top shape?
I have a waxed chain that i used in the rain, got home cleaned it off but didn’t rewax it right away and it has minor surface rust on a number of links.