Cover your iron fence with a protective wax or clear seal coating. This will help repel water and prevent rust. It will also make it much easier to wash away dirt, grime, and other residue, which is something you should do at least once a year.
Inspect your fence regularly and have any rust spots repaired as soon as possible. That’s really all that’s needed to keep your wrought iron fence in great condition.