Sacred prostitution, temple prostitution, cult prostitution, and religious prostitution are purported rites consisting of paid intercourse performed in the context of religious worship, possibly as a form of fertility rite or divine marriage (). Scholars prefer the terms "sacred sex" or "sacred sexual rites" in cases where payment for services is not involved.
The historicity of literal sacred prostitution, particularly in some places and periods, is a controversial topic within the academic world. Historically mainstream historiography has considered it a probable reality, based on the abundance of ancient sources and chroniclers detailing its practices, although it has proved harder to differentiate between true prostitution and sacred sex without remuneration. Authors have also interpreted evidence as secular prostitution administered in the temple under the patronage of fertility deities, not as an act of religious worship by itself. However, scholarship in the 21st century has challenged the veracity of sacred prostitution as a concept, suggesting that the claims are based on mistranslations, misunderstandings or outright inventions of ancient authors.
Sacred prostitution has many different characteristics depending on the region, class and the religious ideals of the period and the place, and consequently can have many different definitions. One definition that was developed was due to the common types of sacred prostitution that are recorded in Classical sources: sale of a woman's virginity or rinni in honor of a goddess or a once-in-a-lifetime prostitution, professional prostitutes or slaves owned by a temple or sanctuary, and temporary prostitution that occurs before a marriage or during certain rituals.
Ancient Near Eastern societies along the Tigris and Euphrates rivers featured many shrines and temples or houses of heaven dedicated to various deities. The 5th-century BC historian Herodotus's account and some other testimony from the Hellenistic Period and Late Antiquity suggest that ancient societies encouraged the practice of sacred sexual rites not only in Babylonia and Cyprus, but throughout the Near East.