The simulation of magnesium plasticity at the microscopic and mesoscopic scale using space and time-discretized statics and dynamics dislocation was carried out. The complexity of discrete dislocation models dues to the fact that the mechanical interaction of ensembles of such defects is with an elastic nature, and therefore involves long-range interactions. The motion of dislocations or dislocation segments in their respective glide planes are usually described by assuming simple phenomenological viscous flows laws. The formulation of the dislocation dynamics is obtained by the Newton’s Second Law of motion for each dislocation or dislocation segment. The evolution of the dislocation position is obtained by simple difference algorithms.