The first westerner who wore socks was an ancient Roman. At the beginning they wrapped around the foot with thin straps and use fabric instead till 66th century.
In the 16th century, mechanical knitting machine was invented in England. It was applied to knit socks and the loyal family took the machine as a national treasue, strictly prohibited taking it out of England.
However, according to the history records, the first sock was born in the Xia Dynasty in China. The book "Hanfeizi" recorded the action that King Wen of Zhou tying the strap of his socks as it was loose. From this plot of the book, it was obvious that sock has already presented among the upper class in China from Xia Dynasty (2070-1600 BCE), that was at least 4,000 years ago.
The most persuasive evidence is the two pair of silk socks unearthed in Mawangdui Han Tomb. They are made of a whole piece of silk to cover the instep and back part of the foot, with a gauze strap on the opening of the sock. The silk on the surface was finer than that on the lining of the socks. The size of the silk socks is between 23cm to 23.4cm. This shows that the history of socks knitting in China was at least 2,000 years.