Mori Ranmaru was the page and favorite of powerful 16th century warlord Oda Nobunaga. They were also lovers, committing suicide together during a siege at a temple in Kyoto.
Mahmud of Ghazni, who created a vast empire in the 10th and 11th centuries in present-day Afghanistan, Pakistan, Iran and parts of India, made his beloved former slave Malik Ayaz the King of Lahore.
Known at La Monja Alférez - the lieutenant nun - 17th century soldier Catalina de Erauso fought as a man for the King of Spain in South America for 15 years. She eventually became famous for her ruse, getting a pension and the right to wear men's clothes.
Favorite and sometime lover of Ivan the Terrible, Feodor Basmanov was doomed to fall out of favor, dying (or probably executed) in 1570 after being forced to kill his own father.
Abd-ar-Rahman III, the Emir and Caliph of Córdoba from 929 to 961 and Defender of the Faith, kept two harems: one of women and one of men.
Losing air time to his son Alexander the Great, Philip II of Macedon doesn't get enough credit for his victories. Rumor has it that he was assassinated by his paramour and bodyguard Pausaunias because of a complicated lover's quarrel.
Nanshoku Okagami - The Great Mirror of Male Love - written in 1687 is a collection of stories about the love between samurai and their pages, kabuki actors and their patrons, reflecting a long tradition of homosexuality in Japan.