Dirk Nowitzki isn't retiring this offseason.

The Mavericks big man announced Tuesday he will be returning for his 21st year during his end of the season interview.

Nowitzki, 39, had to miss the final few games of the season after he had surgery April 5 to clear out unhealthy tissue around his ankle. However, he said that won't hinder him from returning to action in the fall.

“The plan is still to come back and work toward another season,” Nowitzki said.

He played in 77 games in 2017-18, but only averaged 12.0 points — his lowest since his rookie season — and 5.7 rebounds.

The Mavericks (24-57) will finish the regular season Tuesday with a home game against the last-place Suns (20-61).