In Game 5 of the 2014 NLCS against the St. Louis Cardinals, Affeldt entered the game in the top of the ninth with two outs and the bases loaded, retiring Oscar Taveras (in what would be his final career at bat) on a comebacker to preserve a 3–3 tie. Affeldt was credited with the win when Travis Ishikawa hit a walk-off home run in the bottom of the ninth to clinch the pennant for the Giants.