These species-particular behavior patterns provide a context for aspects of human reproduction, including dating.
This period of courtship is sometimes seen as a precursor to engagement or marriage.
Dating as an institution is a relatively recent phenomenon which has mainly emerged in the last few centuries.
While pair-bonds of varying forms were recognized by most societies as acceptable social arrangements, marriage was reserved for heterosexual pairings and had a transactional nature, where wives were in many cases a form of property being exchanged between father and husband, and who would have to serve the function of reproduction.
Communities exerted pressure on people to form pair-bonds in places such as Europe; in China, society "demanded people get married before having a sexual relationship" and many societies found that some formally recognized bond between a man and a woman was the best way of rearing and educating children as well as helping to avoid conflicts and misunderstandings regarding competition for mates.
Generally, during much of recorded history of humans in civilization, and into the Middle Ages in Europe, weddings were seen as business arrangements between families, while romance was something that happened outside of marriage discreetly, such as covert meetings.