Why doesn't gold corrode?
You can look it up on James Huheeys book, gold's few properties have been qualitatively explained by relativistic theory. Due to that and high nuclear charge acting on the electron, the single electron in $6s$ is actually attracted to the nucleus strongly, thus the electron is not available to react that easily and thus gold does not corrode.