As the season progressed, Díaz' defense notably improved; in the remaining 51 games leading up to the All-Star break, he committed six errors. On July 7, he was selected to his first MLB All-Star Game to replace Carpenter, who had been injured two days earlier. Díaz appeared as a pinch hitter with the bases loaded against Will Harris in the eighth inning, and struck out looking as the American League defeated the National League, 4−2. On July 21 against Padres in a 5−5 game, Díaz batted against Carlos Villanueva with the bases loaded in the bottom of the ninth inning and, this time, singled home the game-winning run for his first career walk-off hit.