DTMF works by assigning eight different audio frequencies to the rows and columns of the keypad. The columns on the keypad are assigned high-frequency signals, while the rows are assigned low-frequency signals.