Apostrophe is used when a speaker addresses an absent person, an abstract idea, or an inanimate object, as in
"O Death, where is thy sting?"