If you plan on staying longer than just a visit, you will need a Residente Temporal or Residente Permanente Visa (Formerly FM3).

TIP:  You need to apply outside of Mexico for this, either at an Canadian or American Consulate

I will update this in January 2017.