Agent Smith is a fictional character and the main antagonist of The Matrix trilogy. He was portrayed by Hugo Weaving in the films and voiced by Christopher Corey Smith in The Matrix: Path of Neo. However, due to scheduling conflicts, Weaving was not able to portray the role in The Matrix 4.