Dirk Nowitzki and the Mavericks have agreed to a four-year contract.

Nowitzki will be guaranteed $80 million over the length of the contract and accepted less money in order to give the Mavericks more room to make additional moves.

Nowitzki's deal also contains a no-trade clause.

RealGM Note: Nowitzki has spent his entire career with Dallas since coming into the NBA in 1998 and was seen as the least likely player to leave his incumbent team.