The story
Friedrich Wilhelm Kasiski was a Prussian infantry officer who retired as a major in 1852. In 1863 he published in Berlin a short book, Die Geheimschriften und die Dechiffrir-Kunst (Secret Writing and the Art of Deciphering). Its central idea was new in print: in a message enciphered with a repeating keyword, look for groups of letters that appear more than once, and measure the distances between them.
The reasoning is simple. A word such as THE turns up again and again in English. Whenever two copies of it happen to line up with the same part of the key, they are enciphered the same way, and the distance between them is a whole number of key lengths. So the key length divides most of the distances. A few repeats will be pure coincidence, but the true length shows through.
Babbage got there first
Charles Babbage, the mathematician who designed the Difference Engine, seems to have worked out the same attack around 1854, after a public argument about whether such ciphers could be broken. He never published it. One explanation sometimes offered is that British intelligence wanted it kept quiet during the Crimean War, but there is no firm evidence for that; Babbage left many projects unfinished. His notes were only studied in the 20th century, so the method carries Kasiski's name.
The book got little notice at the time. Kasiski turned to archaeology, and probably never knew how much he had changed codebreaking.
How it was broken
This platform is the breaking. Once the key length is known, the method is a frequency count per column, exactly the trick of al-Kindi. Later cryptologists added a second way to find the length without hunting for repeats: William Friedman's index of coincidence (1922), which measures how unevenly the letters are spread.
The lesson for cipher makers was that the key must not repeat. A key as long as the message, used once and thrown away, defeats both tests. That is the one-time pad, further down the line.