The boy bands will appear on Tuesday night's live results show as part of the series' "Guilty Pleasures Week".
Co-host Tom Bergeron announced the performance during Monday night's episode, during which Hanson also performed their 1997 hit single 'MmmBop'.
The groups will join former American Idol contestant Pia Toscano, who is scheduled to sing while accompanied by rumoured boyfriend and DWTS professional Mark Ballas.
New Kids On The Block and Backstreet Boys recently revealed the tracklisting for their upcoming collaborative greatest hits album. The bands will also merge and tour the US as NKOTBSB this summer, supported by Jordin Sparks.
Other performers who have appeared on the current season of Dancing With The Stars in the past few weeks include Selena Gomez, Chris Brown and Toby Keith.
Dancing With The Stars airs Mondays and Tuesdays on ABC.
> Read our recap of this Monday's episode of Dancing With The Stars