When medical researcher Jerome P. Horwitz first synthesized the chemical compound AZT in the 1960s, he hoped it would be a successful treatment for cancer. At first, he thought he had failed.

And in the short term, he had. AZT was not a cure for cancer. But two decades later, it emerged as a treatment for a disease that had not yet been named when Dr. Horwitz was toiling in his Detroit laboratory. The disease was HIV/AIDS. In 1987, AZT became the first treatment for the virus approved by the Food and Drug Administration.

AZT was not a cure, and it had downsides, including sky-high costs and dangerous side effects. But it was the first treatment that significantly decreased HIV-related mortality rates — at a time when many scientists considered HIV an untreatable disease. It later became part of a drug combination that curbed deaths even further.

Even as those “cocktails” were supplanted by other more effective regimens, scientists say, AZT has continued to serve as a model for treatment of the disease.

“AZT stood up and said, ‘Stop your pessimism,’ ” said Samuel Broder, a National Cancer Institute scientist who headed a group of scientists that helped discover the therapeutic nature of AZT in the 1980s. “ ‘Stop your sense of futility. Go back to the lab. Go back to development. Go back to clinical trials. Things will work.’ ”

Jerome P. Horwitz, the medical researcher who in the 1960s synthesized AZT, a chemical compound that two decades later became a revolutionary treatment for HIV/AIDS, died Sept. 6. He was 93.) (Courtesy of Walter P. Reuther Library, Wayne State University)

Dr. Horwitz died Sept. 6 at 93 at a hospital in West Bloomfield Township, Mich. His death, from pneumonia and a heart attack, was confirmed by his wife, Sharon Horwitz. He had worked for nearly five decades at Wayne State University in Detroit and the affiliated institution now known as the Barbara Ann Karmanos Cancer Institute.

His most noted achievement — the creation of AZT — began with a moment of frustration in 1964, when he was director of chemistry at the oncology institute. At that time, floundering in their efforts to find a cure for cancer, medical researchers were testing any drugs with even the most remote potential to see what worked.

“I got tired of randomly selecting drugs for cancer, just pulling chemicals off the shelves and trying them out to see if they would work,” he told The Washington Post in 1986. “It was necessary, but there was no satisfaction, no challenge in it.”

So Dr. Horwitz decided to begin creating his own chemical compounds and testing them on cancer cells. One of them was azidothymidine (later widely known as AZT, and also sometimes called zidovudine).

The compounds would work, or so he hoped, by interfering with the division and growth of cancer cells. To divide, cells use base elements called nucleosides to produce new DNA chains. Dr. Horwitz referred to his compounds as “fraudulent nucleosides.” Like chemical Trojan horses, the compounds would enter the cancer’s DNA and sabotage its growth.

At least that was the idea. Scientists tested AZT in mice with leukemia and watched it fail utterly. He compared the feeling to “a blow to the solar plexus.”

He wrote a paper on the topic, decided not to pursue a patent and put the compounds on a shelf. For two decades, they were occasionally tested for new uses — as is often the practice in the scientific community — but mostly collected dust.

In the next decade or so, however, scientists began to understand the special viruses known as retroviruses. HIV, which causes AIDS, is one of them. Together with Broder and other researchers at the National Cancer Institute, the pharmaceutical company Burroughs Wellcome began testing chemical compounds that showed potential to hinder HIV. Dr. Horwitz’s semi-forgotten AZT compound was one of those that showed early promise.

“It’s a wonderful example of how science works,” said Robert Gallo, the founder of the Institute of Human Virology at the University of Maryland School of Medicine and a scientist who has been credited with identifying HIV as the cause of AIDS.

As the deaths from HIV/AIDS reached into the many thousands, the urgency for a cure became stronger. After AZT was tested in cell lines, the FDA deliberated for only one week before agreeing to allow it to be tested in humans. That development happened July 3, 1985. After promising tests, the FDA licensed the treatment for commercial distribution in 1987.

The drug attracted controversy because of its high cost —$8,000 or more per year. In 1989, the New York Times wrote that it was said to be “the most expensive prescription drug in history.”

To his decades-long chagrin, Dr. Horwitz did not patent the compound and did not profit financially.

AZT was never a cure for HIV/AIDS. Side effects in some patients were severe. Used alone, it decreased short-term mortality. Its real value, however, emerged when it was used in combination with two other antiretroviral drugs in what became known as an “AIDS cocktail.” Such combinations can stop HIV from replicating and prolong life for years. Today, however, AZT has been largely supplanted by other, less toxic drugs.

“It is not an exaggeration to say that everything we have done since started with the development of AZT,” said Paul A. Volberding, the director of the AIDS Research Institute at the University of California at San Francisco.

Jerome Phillip Horwitz was born Jan. 16, 1919, in Detroit. His father worked in the wholesale poultry business; his mother was a homemaker. Dr. Horwitz decided to pursue science after reading Paul de Kruif’s book “Microbe Hunters” as a teenager.

He received a bachelor’s degree in 1942 and a master’s degree in 1944, both in chemistry and from the University of Detroit Mercy, and a doctorate in organic chemistry from the University of Michigan in 1948.

In 1956, he joined Wayne State University. In addition to his medical laboratory research, he was a professor of internal medicine in the oncology division. Until his retirement in 2005, he said, his “heart was always in cancer research.”

He worked over the years on chemotherapy, estrogen-related treatments for breast cancer and treatments for solid tumors.

Survivors include his wife of 61 years, Sharon Newman Horwitz of Farmington Hills, Mich.; two daughters, Carol Kastan and Suzy Gross, both of West Bloomfield Township; and five grandchildren.

“My colleagues and I said that we had a very interesting set of compounds,” he told the New York Times in 1986, “that were waiting for the right disease.”