Sexual orientation, at least for men, seems to be settled before birth. “I think most of the scientists working on these questions are convinced that the antecedents of sexual orientation in males are happening early in life, probably before birth,” Dr. Breedlove said, “whereas for females, some are probably born to become gay, but clearly some get there quite late in life.”

Image Credit... John Hersey

Sexual behavior includes a lot more than sex. Helen Fisher, an anthropologist at Rutgers University, argues that three primary brain systems have evolved to direct reproductive behavior. One is the sex drive that motivates people to seek partners. A second is a program for romantic attraction that makes people fixate on specific partners. Third is a mechanism for long-term attachment that induces people to stay together long enough to complete their parental duties.

Romantic love, which in its intense early stage “can last 12-18 months,” is a universal human phenomenon, Dr. Fisher wrote last year in The Proceedings of the Royal Society, and is likely to be a built-in feature of the brain. Brain imaging studies show that a particular area of the brain, one associated with the reward system, is activated when subjects contemplate a photo of their lover.

The best evidence for a long-term attachment process in mammals comes from studies of voles, a small mouselike rodent. A hormone called vasopressin, which is active in the brain, leads some voles to stay pair-bonded for life. People possess the same hormone, suggesting a similar mechanism could be at work in humans, though this has yet to be proved.

Researchers have devoted considerable effort to understanding homosexuality in men and women, both for its intrinsic interest and for the light it could shed on the more usual channels of desire. Studies of twins show that homosexuality, especially among men, is quite heritable, meaning there is a genetic component to it. But since gay men have about one-fifth as many children as straight men, any gene favoring homosexuality should quickly disappear from the population.

Such genes could be retained if gay men were unusually effective protectors of their nephews and nieces, helping genes just like theirs get into future generations. But gay men make no better uncles than straight men, according to a study by Dr. Bailey. So that leaves the possibility that being gay is a byproduct of a gene that persists because it enhances fertility in other family members. Some studies have found that gay men have more relatives than straight men, particularly on their mother’s side.

But Dr. Bailey believes the effect, if real, would be more clear-cut. “Male homosexuality is evolutionarily maladaptive,” he said, noting that the phrase means only that genes favoring homosexuality cannot be favored by evolution if fewer such genes reach the next generation.