Pajamas (US) or pyjamas, often shortened to PJs or jammies, can refer to several related types of clothing originating from the Indian subcontinent. In the Western world, pajamas are loose-fitting garments derived from the original garment and worn chiefly for sleeping, but sometimes also for lounging, also by both sexes. More generally, pajamas may refer to several garments, for both daywear and nightwear, derived from traditional pajamas and involving variations of style and material.

The worldwide use of pajamas (the word and the garment) is the result of adoption by British colonists in India in the 18th and 19th centuries, and the British influence on the wider Western world during the Victorian era. Pajamas had been introduced to England as "lounging attire" as early as the seventeenth century, then known as mogul's breeches (Beaumont and Fletcher) but they soon fell out of fashion. The word pajama (as pai jamahs, Paee-jams and variants) is recorded in English use in the first half of the nineteenth century. They did not become a fashion in Britain and the Western world as sleeping attire for men until the Victorian period, from about 1870.

More Info: en.wikipedia.org