It wasn't the prettiest game, but all that matters is getting the win and the 49ers did that Sunday thanks to Ahkello Witherspoon.

The 49ers held a 23-17 lead over the Bucs with a little over two minutes to play when Jameis Winston dropped back and sailed a pass intended for Ronald Jones right into the hands of Ahkello Witherspoon. The 49ers cornerback wasted no time returning the interception 26 yards to seal the 31-17 win for the 49ers in Tampa.

It was the 49ers' third interception of the game, surpassing their season total from a year ago.

[RELATED: 49ers' Alexander ejected after big hit on Winston]

Kyle Shanahan's team has some things to work out, but they left Raymond James Stadium with an important win and a 1-0 record.