In rhetoric, an anaphora (Greek: ἀναφορά, "carrying back") is a rhetorical device that consists of repeating a sequence of words at the beginnings of neighboring clauses, thereby lending them emphasis. In contrast, an epistrophe (or epiphora) is repeating words at the clauses' ends. The combination of anaphora and epistrophe results in symploce.
For want of a nail the shoe was lost.
For want of a shoe the horse was lost.
For want of a horse the rider was lost.
For want of a rider the message was lost.
For want of a message the battle was lost.
For want of a battle the kingdom was lost.
And all for the want of a horseshoe nail.