The 31-year-old fired a four-under-par final round of 68 at Durban Country Club to post the clubhouse lead at 12-under-par.
Oosthuizen pulled on his golf clothing on Sunday two shots behind England's Tommy Fleetwood, who held the overnight lead at 10-under-par.
An eagle at the 8th rocketed Oosthuizen up into a share of the lead with Grace, who carded three birdies in a row from the 6th hole.
A bogey at 10 saw Oosthuizen drop out of a share of the lead, which he regained with a birdie at 13. Another birdie at 14 saw the South African take the outright lead.
However the former Open champion was forced back into a three-way tie at the top of the leaderboard, with Grace and Joost Luiten at 10-under, following a bogey on 16.
But back-to-back birdies on 17 and 18 saw Oosthuizen edge ahead of Grace and ensured that he retained his title.
"It was nerve-wracking through the round but I finished strong and I'm just happy that I got it done. It's an awesome start for the year. Confidence-wise it's great," Oosthuizen said.
"I haven't really played well last year with all the injuries so hopefully I can build from here on and just go better next time."
© Copyright Press Association
News brought to you by Glenmuir, add a touch of luxury to your game.
Experience the neater athletic fit of our men's performance golf shirts.