To maintain good posture while working at a desk for long hours, sit with your back against the chair’s backrest, shoulders relaxed, and feet flat on the floor or a footrest. Keep your head aligned with your spine, and avoid slouching or hunching forward. Take short breaks to stand up, stretch, and readjust your posture. Using an ergonomic chair and maintaining proper desk and equipment positioning can also promote better posture.