Frames in the fuselage are mainly provided to:

Explanation:

Frames maintain fuselage shape and distribute stresses.