The San Francisco Giants have signed longtime reliever Sergio Romo, who will retire as a member of the team at the end of spring training.

Romo signed a minor league contract with an invite to major league spring training. He will retire March 27 during the Giants' final spring training game against the Oakland Athletics.

"The relationship that Giants fans have with their players is unique -- few exemplify that bond more than Sergio," Giants president of baseball operations Farhan Zaidi said in a statement Saturday. "After all that he accomplished as a Giant from 2008 to 2016, including his huge contributions to the championship teams, it's a thrill to have him back in a San Francisco uniform."