Traditionally, pajamas are worn for sleep and relaxation in the comfort of one's home. They are primarily intended for nighttime wear, providing comfort and warmth during sleep. However, in modern times, pajamas have also become popular as loungewear for relaxing at home throughout the day.