I think that gender is heavily influenced by religion and literature. In a very famous example almost every single religious text puts man above woman in some way or talks about how women have harsher rules to abide by. One example that we read about is in the Koran how women can have only one husband but men can have several wives. In more modern religions such as Mormonism views like this are still indoctrinated. Women are typically always more regulated in some way while men have much more freedom. Gender stereotypes are seen to this day as all religious leaders are male in all of the major religions.
Gender influences literature in several ways as in much of early literature men were the more important characters while women were more of the supporting roles. Women also are typically written about as those who need help which has lead them to be thought of as weak and needing to be saved by a man when this isn’t the case. This is exemplified when looking at many works of literature such as stories about superheroes or princesses or even many works of old literature such as religious texts. Gender has always influenced religion and literature because women have always been written about needing a man and this is just simply not true.