Corrode means to be eaten away by a chemical reaction.
- The rust will immediately corrode the brass if it is not removed.
Erode means to wear away by water or wind.
- The heavy spring rains eroded the high cliffs by their house.
Note: Both of these words can also be used figuratively.
- Mistrust can corrode any good business partnership.
- Confidence in their leadership eroded over the years.