If you have two materials that are different that are being joined together what what type of connection is made?

If you have two materials that are different that are being joined together what what type of connection is made?