The punishment for both the first two activities with those under 18 years of age is more severe for the older participant.
Although Djiboutian law establishes that parties to a marriage should be 18 or over, there is an exemption in cases where minors may marry with the consent of their guardians.
Presently, there is no defined age of consent, although sex is not allowed outside of marriage.
However, the law is practically never enforced due to the Libyan Civil War.
The age of consent in South Africa is 16, as specified by sections 15 and 16 of the Criminal Law (Sexual Offences and Related Matters) Amendment Act, 2007.
Although sex between men was already illegal, prohibited by the common law as "sodomy" or "unnatural sexual acts", the Immorality Act also criminalised sexual intercourse between a man and a boy under sixteen.Early childhood marriage is especially common in rural areas, where some girls are married as young as 7 years old.During the Gaddafi government, the regular age of consent was 18, but 16 years old women could be married as long the parents consented. After the 2011 revolution, the age of consent limit was removed.It also renamed the Immorality Act to the Sexual Offences Act, 1957.The Interim Constitution, which came into force in 1994, prohibited discrimination on the basis of sexual orientation, as does the final Constitution which replaced in 1997.