NEW YORK — Mets genius Jacob deGrom pulled from a beginning Sunday after throwing two warm-up pitches prior to the sixth inning.

The Mets afterwards stated that deGrom was experiencing tightness in his right side and has been taken out of the match for”precautionary motives.”

DeGrom was pitching for the first time because bypassing a start because of discomfort in his right lat.

The two-time NL Cy Young Award winner drove 68 pitches five innings from the Arizona Diamondbacks, allowing a single run, but he called for a coach when he sensed distress hoping to become loose before the sixth. He left with the coach and went right to the clubhouse, and it wasn’t immediately declared what induced him to depart.

He was perfect through four innings before fighting in the fifth, when he let a run.

The right-hander walked in the inning, only the second time in his career he has done that. His past three-walk inning was May 13, 2018, in Philadelphia.

New York led 2-1 when he left Sunday, with deGrom scoring the next run after hitting a perfectly placed bunt single in the third inning.

He was substituted with right-hander Miguel Castro and followed closely by fellow relievers Jacob Barnes and Edwin Diaz, that made the last five outs to make a save from the Mets’ 4-2 victory, their fifth straight.

DeGrom improved his record to 3-2 on the season while his ERA climbed to 0.68.