We present a 3-D symplectic mapping model that is valid at the 2:1 mean motion resonance in the asteroid motion, in the Sun-Jupiter-asteroid model. This model is used to study the dynamics inside this resonance and several features of the system have been made clear. The introduction of the third dimension, through the inclination of the asteroid orbit, plays an important role in the evolution of the asteroid and the appearance of chaotic motion. Also, the existence of the secondary resonances is clearly shown and their role in the appearance of chaotic motion and the slow diffusion of the elements of the orbit is demonstrated.