While men wore skirts for most of history, they were replaced by trousers in probably the Middle ages and eventually by shirts, pants, and ties in the 20th Century.