The invention of pants is closely intertwined with the invention of special clothing for equestrian peoples, such as the Mongols. It was not until the 17th century that trousers became established in Europe and supplanted men's skirts. Men soon wore only pants, although they were taboo for women for a long time. It wasn't until 1911 that elegant Parisian women designed trouser dresses - so-called jupe-culottes - and Coco Chanel revolutionized pants in women's wardrobes even more.
Today, fortunately, we are allowed to wear pants and jeans whenever it suits us!