Seawater has chlorides which inhibits the formation of aluminum oxide. This will promote corrosion. Contact with dissimilar metals or contact between dissimilar aluminum alloys also causes corrosion. Another condition that causes corrosion is fretting.
Anodizing is a process that converts the surface of aluminum to aluminum oxide which is quite hard and offers good protection.
Even with minimal maintenance, AR receivers have little trouble with corrosion

