“Danny Deever” is an 1890 poem by Rudyard Kipling, one of the first of the Barrack-Room Ballads. It received wide critical and popular acclaim, and is often regarded as one of the most significant pieces of Kipling’s early verse. The poem, a ballad, describes the execution of a British soldier in India for murder. His execution is viewed by his regiment, paraded to watch it, and the poem is composed of the comments they exchange as they see him hanged.
You can be that, in my Imperium, both the Navy and the Marines have the authority to conduct field executions by hanging. (Nobles have the right to request execution by sword instead.)