Why do metals have to be separated to prevent corrosion?

My chemistry is shamefully shallow here and I need some brushing up. We’re having some roofing done and there are some places that could have aluminum and copper contacting each other. Roofing contractors are telling us that they will need to be separated by some type of membrane to reduce corrosion. Is this what they’re talking about - the two metals, with water in between, form a weak wet cell, and that can speed up decay of the metals, i.e. corrosion, as they interact?

Galvanic Corrosion

Yes. That’s what they’re talking about. The aluminium will corrode faster, and the copper will corrode slower than either would alone, if they’re in electric contact.

With metals they will corrode when exposed to oxgyen (air) reducing the metal to an oxide (rust). When two different metals are in contact a electrilictic reaction can occure at a rapid rate. Most common is connecting iron pipe to copper pipe. In this case an dielectric union must be used.

I had to squint real hard at that for a minute before I realized that you meant “electrolytic.”