In the early 18th century, a Portuguese woman named Maria Ursula de Abreu disguised herself as a man and joined the Portuguese army. She fought in India and was promoted to commander of a fortress, and her secret was never discovered until she asked the king for permission to marry a fellow soldier.
