Updated

Hanley Ramirez drove in a pair of runs without a hit to back Anibal Sanchez's first win in four starts, and the Miami Marlins rebounded from a rough stretch for a 3-2 victory over the San Francisco Giants on Thursday and a three-game sweep.

Giancarlo Stanton doubled in the seventh after he homered in three of his previous four games. Stanton has nine doubles and four home runs in 10 career games in the Giants' waterfront ballpark.

A 3,000-mile trek cross-country and a change of scenery seems to have done the trick for the rebounding Marlins, who had lost eight of nine and were booed in their new home stadium before starting this series — the club's second three-game sweep at AT&T Park in as many visits.