NEW YORK (CBSNewYork)The Giants, a team that built itself into a contender last season largely by plucking high-profile free agents from other teams, got a taste of their own medicine Thursday.

Defensive tackle Johnathan Hankins has agreed to a three-year, $30 million contract with the Indianapolis Colts. The deal was first reported by ESPN’s Adam Schefter, who also said the contract includes $14.5 million guaranteed.

The Giants had reportedly offered a four-year, $28 million deal to Hankins, 25, believed by many to tbe the top available remaining free agent. Hankins visited the Colts on Tuesday.

MORE: Silverman: As Draft Nears, Giants’ NFC East Foes Have Plenty Of Issues

Hankins thanked the Giants and their fans in a message posted on Twitter.

“I want to thank the Giants organization for giving me the opportunity to play the game I love,” Hankins wrote. “Especially, to the Mara and Tisch families for welcoming me and supporting me for the last four years. Thank you to my teammates for going to battle every game with me. I appreciate everything this organization has given me and my family. Thank you to all of the fans, and I will never forget Big Blue Nation.”

New York drafted Hankins in the second round of the 2013 draft out of Ohio State. Last season, the 6-foot-3, 320-pound defensive lineman started all 16 games and registered 43 tackles, three sacks and one forced fumble.

[graphiq id=”egsSwo3jTMh” title=”Johnathan Hankins Overview” width=”600″ height=”874″ url=”” ]

Now the Giants will look for another defensive tackle to line up opposite Damon Harrison. The team has Jay Bromley, Robert Thomas and Michael Hunter under contract for next season.

After signing Harrison, cornerback Janoris Jenkins and defensive end Olivier Vernon in free agency last season, the Giants shot up the defensive rankings, from last in 2015 to 10th in 2016. Harrison is the only defensive starter not returning from last year’s playoff team.

Watch & Listen LIVE