Chiasmus is a rhetorical device where words or phrases are repeated in reverse order to create a balanced and contrasting effect. It's like a mirrored pattern in writing or speech.