The rise and increasing popularity of Kabbalah, which emphasized the shechinah and female aspects of the divine presence and human-divine relationship, and which saw marriage as a holy covenant between partners rather than just a civil contract, had great influence. Kabbalists explained the phenomenon of menstruation as expressions of the demonic or sinful character of the menstruant. These changes were accompanied by increased pietistic strictures, including greater requirements for modest dress, and greater strictures during the period of menstruation. At the same time, there was a rise in philosophical and midrashic interpretations depicting women in a negative light, emphasizing a duality between matter and spirit in which femininity was associated, negatively, with earth and matter. The gentile society was also seen as a negative influence on the Jewish community. For example, it seems that Jews would analyze the modesty of their non-Jewish neighbors before officially moving into a new community because they knew that their children would be influenced by the local gentiles.