Johnny Cueto decided not to exercise the opt-out clause in his contract Saturday night, tying him to the Giants for the next four seasons.

Cueto, 31, had until midnight on Saturday to make a decision. He is under contract with the Giants through 2021 and is scheduled to make $21 million per season.

The Giants hold a club option worth $22 million for the 2022 season. If they decline, Cueto is owed a $5 million buyout.