On July 23, 2018, Nowitzki re-signed with the Mavericks for the 2018–19 season. With his season debut on December 13, 2018, he set the NBA record for the most seasons played with the same team (21), breaking a tie with Kobe Bryant, who spent 20 seasons with the Lakers. He also became the fifth player in NBA history to play 21 seasons, tying an NBA record. Nowitzki was named to his 14th All-Star game as a special team roster addition. On March 18, 2019, Nowitzki became the sixth-highest scoring player of all time, surpassing Wilt Chamberlain's 31,419 points in a loss to the New Orleans Pelicans. In his team's final home game of the season, a 120–109 victory over the Phoenix Suns on April 9, Nowitzki scored 30 points, and announced his retirement in an emotional ceremony during which Charles Barkley, Larry Bird, Shawn Kemp, Scottie Pippen, and Detlef Schrempf appeared on the court to give laudatory speeches for Nowitzki. One day later, he played his final NBA game, recording a double-double with 20 points and 10 rebounds in a 105–94 loss to the Spurs.