"El cerdo fue a México para aprender español."
Translation:The pig went to Mexico to learn Spanish.
I hope he stayed away form the border with th U.S., those areas are overrun with Drug Gangs
Para + infinitive of a verb is standard phrasing in Spanish.
In this usage, "para" means "in order". So, formally stated this says "The pig went to Mexico in order to learn Spanish."
In English, we almost always drop the "in order" to keep things simple.