The Matrix Reloaded: Smith begins cloning himself over other denizens of the Matrix after Neo does... whatever he did to him at the end of the first movie. By the end of the third film, he's turned every inhabitant of the Matrix into himself.
Smith: Yes, me. (hand-stab) Me, me, me.
New Smith: ... Me too.