The Matrix is a 1999 American – Australian science fiction action film written and directed by The Wachowski Brothers , starring Keanu Reeves , Laurence Fishburne , Carrie - Anne Moss , Hugo Weaving , and Joe Pantoliano .