GO:0046983:   protein dimerization activity
The formation of a protein dimer, a macromolecular structure consists of two noncovalently associated identical or nonidentical subunits.