Make sure you dry your razor thoroughly after shaving and either oil it or strop it before putting it away.

If you shave with a razor and then dry it and leave it in the head, it will corrode on...