In the narrow sense, the term refers to an act of supplication or intercession directed towards a deity, or a deified ancestor. More generally, prayer can also have the purpose of thanksgiving or praise, and in comparative religion is closely associated with more abstract forms of meditation and with charms or spells.