"I loved my experience with the Mets last season," Cespedes said in a statement released by the team. "In a short period of time, my teammates and the fans made New York feel like home, and I truly felt embraced by the entire organization. As I entered free agency, I couldn't deny the pull to come back and finish what we had started last year. I am excited to finally announce that next season I am coming back to join the New York Mets once again."
Said general manager Sandy Alderson in a statement: "Yoenis was a big contributor to our success last year. Ownership's ongoing commitment allowed us to bring back the right player at the right time to put us in a position to defend our NL East crown."
Cespedes, 30, agreed to a deal with the Mets on Friday night, according to ESPN's Jim Bowden and media reports, a move that took the last big bat off the free-agent market.
The Mets announced the deal is for three years but did not disclose financial terms. According to Bowden and media reports, it is worth $75 million, including $27.5 million in the first year, after which Cespedes can opt out.
The $25 million average annual value of the deal ties Cespedes with Giancarlo Stanton and Josh Hamilton for the highest average annual value ever for an outfielder, according to ESPN Stats & Information.
"It's great to have his big bat back in the middle of the lineup," manager Terry Collins said. "He really lengthens the lineup and makes everyone around him better. He was a great teammate, and I'm really glad he decided to come back."
A right-handed-hitting outfielder from Cuba, Cespedes is coming off a career year, which started with the Detroit Tigers before he was traded to the Mets just minutes before the trade deadline. He set career highs in a number of power categories, including home runs (35), RBIs (105) and OPS (.870). His power was on full display with New York, for whom he hit 17 home runs in 57 games, including nine in a 13-game stretch to start the month of September, reviving an offense that had ranked last in the majors in most categories upon his arrival in late July.
Cespedes was slowed during the postseason by a left shoulder injury that required a cortisone injection before the World Series. He departed the final game of the World Series after fouling a pitch off his left knee.
Collins also offered high praise for Cespedes on Thursday night before the deal was reached.
"He works very hard to be a good teammate," Collins said. "Even though he doesn't speak a lot of English, he works very, very hard at it.
"His pregame routine is off the charts ... off the charts. He has things that he does right before a game in the batting cage. ... When he walks onto that field, he's legit.
"I've been around a lot of great players. I've seen a lot of great players. This guy, just strictly tools, the five tools, he's got them all."
The Nationals reportedly made a five-year offer to Cespedes, a 2014 All-Star and a 2015 Gold Glove winner. The Baltimore Orioles also had interest in Cespedes, offering him a contract before re-signing slugger Chris Davis last week.
A baseball source familiar with Cespedes' contract negotiations previously told ESPN that Cespedes had been seeking a six-year deal in the $22 million annual range this winter.
The Mets, who had expected for much of the offseason to be moving on from Cespedes, now have a glut of outfielders. Curtis Granderson, Michael Conforto, Alejandro De Aza and Juan Lagares also are signed for 2016.
Cespedes' addition raises the team's payroll in 2016 to roughly $140 million, its highest level since Omar Minaya's days as general manager.
It took Major League Baseball and the players' union acting in September to allow the Mets to negotiate with Cespedes this winter. Because Cespedes' contract called for him to be a free agent two years before players generally are eligible, the Mets technically had to release him after the postseason. By rule, that made the Mets ineligible to re-sign him. But after Cespedes' side approached the Mets, MLB and the players' union agreed to waive the rule, allowing them to be one of his suitors.
A star in Cuba, Cespedes made his debut in the majors in 2012, hitting .292 with 23 home runs and 82 RBIs for Oakland, which signed him to a four-year, $36 million deal.
Oakland sent him to Boston at the 2014 trade deadline. The Red Sox traded him to Detroit last offseason, and the Tigers moved him to the Mets at the 2015 trade deadline.
ESPN.com Mets reporter Adam Rubin and The Associated Press contributed to this report.