SAN FRANCISCO (AP) _ Terrell Owens' moment of redemption came at the last instant.

Owens, who had four drops and a fumble earlier, leaped to catch Steve Young's 25-yard touchdown pass with three seconds remaining, giving the San Francisco 49ers a 30-27 NFC wild-card victory over the Green Bay Packers.

The victory ended San Francisco's run of five straight losses to the Packers, including the last three playoffs, and to their head coach, former San Francisco offensive coordinator Mike Holmgren.

Owens snagged the ball in the end zone amid three defenders, who immediately leveled him. But it was too late.

``I knew I was going to have to make a big play,'' said Owens, who was in tears as he was hugged by coach Steve Mariucci on the sideline after the touchdown. ``I started the game with a fumble and a couple of dropped passes. The guys stayed behind me.''

The score capped a nine-play, 76-yard drive engineered by Young after Brett Favre put the Packers up 27-23 on a 15-yard touchdown pass to Antonio Freeman with 1:56 remaining.

The 49ers (13-4) travel to Atlanta next Saturday.