Sleep is important for maintaining good posture and preventing back pain. Soft mattresses can lead to a rounded, hunched over spine. Firm or extra firm mattresses keep your body in alignment by providing support throughout the night so you maintain better posture during sleep without waking up with soreness from improper positioning of your joints.