【Corrode】 means to be eaten away by a chemical reaction.
【Erode】 means to wear away by water or wind.
Note: Both of these words can also be used figuratively.