The former Valencia defender will replace Emery when he leaves at the end of the season.
Club president Manuel Llorente told the club’s official website: “The board have signed and ratified the agreement reached this past Friday with Mauricio Pellegrino, who will be the first-team manager for the next two seasons.”