Angel Pagan just homered off Ryan Bukvich in the seventh inning to give the Mets a 4-2 lead over the Orioles.
Oscar Salazar tied the game in the top half with a single that scored Adam Jones, who doubled with one out.
Jeremy Guthrie went four innings, allowing one run and three hits, walking none and striking out four. He threw 44 of his 59 pitches for strikes.
A Luis Hernandez error gave the Mets a 2-1 lead in the fifth. Hernandez made a backhanded stop and skipped a throw past first baseman Aubrey Huff, leaving Hayden Penn with an unearned run.
Jim Johnson had an easy sixth inning.