After the 1745 rebellion, led by Bonnie Prince Charlie, the government made it illegal for Scotsmen to wear kilts. The ban remained in force until 1832.