When training for long-distance hiking, it is important to focus on strengthening your legs (quads, hamstrings, and calves), core muscles (abdominal and back muscles), as well as your upper body (arms and shoulders) to help with carrying a backpack.