Read these passages from Ibn Battuta's book and then make some generalizations about his attitudes toward women and sex.
Marriage
Muslim men were allowed to have four wives. Ibn Battuta married his first wife on his way across North Africa. (After a bad arrangement, he canceled his first proposed marriage and quickly arranged for another wife). In Damascus he married again and fathered a son whom he never met. In India he married again and had a daughter by her.
In the Maldive islands he had several wives and then divorced them. He has a child by at least one of them, a son whom he left with the child's mother in the Maldive Islands.
"It is easy to marry in these islands because of the smallness of the dowries and the pleasures of society which the women offer... When the ships put in, the crew marry; when they intend to leave they divorce their wives. This is a kind of temporary marriage. The women of these islands never leave their country." [Dunn, p. 237]
Sex with slave-girls / consorts: This was "legal" and Ibn Battuta father children by at least two slave-girls. (One Greek, one that he got in India.)
Adultery - Adultery (having sex with a married person) was a very serious crime in Islamic countries, punishable by death. As a judge, Ibn Battuta would support the strict enforcement of this rule.
Ibn Battuta relates this anecdote to illustrate the importance of chastity to a true Muslim man:
"[A rich man's wife] conceived a passion for [a good man] and tried to tempt him, but he [rejected her advances] saying 'I fear God, and shall not deceive one who trusts me with his family and goods'. She did not cease tempting him and putting herself in his way until he, in fear lest he should yield to temptation, castrated himself and fell faint." [And he was rewarded for his virtue.] [Gibb, p. 175]
Eunuchs - a eunuch is a male who has been castrated.
Ibn Battuta tells of eunuchs in the service of amirs, shaikhs and sultans in Egypt, India, and China. They serve the sultan or emperor in many ways: as protectors of the harem (the group of wives of the ruler), as the keepers of the Prophet Muhammad's mosque in Medina and other shrines, and as administrators in China.
Concerning the guards of the Mosque: "... [They are] men of fine appearance, pleasant in features, and elegant dress. Their chief ... ranks equal to the high amirs. They are in enjoyment of [high salaries] derived from Egypt and Syria and paid over to them every year." [Gibb, p. 175, and 256]
Prostitution: Ibn Battuta is critical of prostitution. In speaking of the inhabitants of Ladhiq, a city in Anatolia (Turkey), he says:
"[They] make no effort to stamp out immorality - indeed, the same applies to the whole population of these regions. They buy beautiful Greek slave-girls and put them out to prostitution, and each girl has to pay a regular due to her master. I heard it said there that the girls go into the bath-houses along with the men, and anyone who wishes to indulge in depravity does so in the bath-house and nobody tries to stop him." [Gibb, p. 425]
Celibacy (not having sex): Ibn Battuta praises several holy men and Turkish young men who have adopted the celibate life. [Gibb, p. 419 and elsewhere.]
Respected women of Islam - Ibn Battuta mentions several pious women. One was a famous scholar of the Koran [Gibb, p. 157]. One was the wife of a sultan who built wells along the pilgrimage route to Mecca. [Gibb, p. 251] and a few others, including the mother of Muhammad Tughluq for her charity.