 On November 10, 2016, Marrero signed a minor league contract with the San Francisco Giants.After a strong spring training, he was named to the Giants' 25-man opening day roster for 2017.On April 14, 2017, he hit his first major league home run off Tyler Anderson of the Colorado Rockies.