President Donald Trump was booed and greeted with chants of "Lock him up!" while attending Game 5 of the World Series on Sunday night.

Trump was shown waving on the big screen after the third inning, and some in the crowd did not take kindly to his appearance.

Some at Nationals Park said the boos Trump received were the loudest the stadium got all night in a 7-1 loss to Houston.

The ceremonial first pitch of the game had been thrown by José Andrés, the renowned chef and activist who is a vocal Trump critic. Trump didn't arrive until after the start of the game.

Visit Business Insider's homepage for more stories.

President Donald Trump attended Game 5 of the World Series between the Washington Nationals and the Houston Astros on Sunday night and was resoundingly met with boos when he was shown on the big screen.

Once the boos subsided, some fans broke out in chants of "Lock him up!" echoing the chants often heard at the president's rallies targeting political opponents including Hillary Clinton.

Trump was introduced to the crowd after the third inning during a tribute to military veterans. Fans initially cheered for the service members who were highlighted on the big screen but quickly shifted to boos when the president was shown waving on the Jumbotron.

Some in the stadium said it was the loudest noise response emitted from the crowd all night in a 7-1 loss to Houston.

Trump announced his plans to attend Game 5 on Friday, when it was still unclear whether the game would be played, as the Nationals could have swept the series. But after the Astros won Game 3 on Friday night, Sunday night's game and Trump's presumed attendance became official.

According to Washington's CBS affiliate, WUSA9, the Nationals' owners had specifically asked MLB to ensure they would not be put in a position to accept or deny a request from the president to sit alongside them in the owner's suite.

While Trump was in the crowd, he did not throw out the ceremonial first pitch on Sunday night. Instead, the renowned chef, activist, and vocal Trump critic José Andrés began the evening, throwing the first pitch to Nationals veteran Ryan Zimmerman.

Trump joked when asked on Friday whether he would be throwing out the first pitch.

"I don't know," he said. "They got to dress me up in a lot of heavy armor. I'll look too heavy. I don't like that."