Philadelphia Phillies manager Ryne Sandberg and reliever Ken Giles were involved in an altercation that got heated at times during Friday's 1-0 loss to the Pittsburgh Pirates.

After striking out Jordy Mercer with the bases loaded to end the eighth inning, Giles drew the ire of Sandberg, Phillies bench coach Larry Bowa and pitching coach Bob McClure in the Philadelphia dugout.

Ken Giles was confronted by Phillies manager Ryne Sandberg in the team's dugout during Friday's game. Charles LeClaire/USA TODAY Sports

Television cameras caught each one yelling in the face of a seated and visibly agitated Giles, who yelled back at times.

"There was some frustration and some game situation. Talked about some game situations," Sandberg said in an apparent attempt to diffuse the situation, adding that it was "taken care of in-house."

Giles was visibly upset on the mound after being instructed to intentionally walk Pedro Alvarez with two outs and a runner on second base. The right-hander then walked Francisco Cervelli before battling back from a 3-0 count to strike out Mercer.

Giles did not speak with reporters after the game.

Sandberg was asked if he liked when players showed emotion on the field.

"I do like to have players with emotions," he said. "There's a time and a place and a situation to show that."

The Associated Press contributed to this report.