Drugs can reduce the risk of the HIV virus spreading
An HIV positive person can reduce the risk of spreading the virus to uninfected partners by 96% if they are given anti-retroviral drugs immediately, according to the United States National Institutes of Health.
An international study looked at 1,763 couples in which only one partner was infected with HIV.
It was abandoned four years early as the trial was so successful.
The World Health Organisation said it was a "crucial development".
The study began in 2005 at 13 sites across Africa, Asia and the Americas.
Patients were split into two groups. In one, HIV infected partners were immediately given a course of anti-retroviral drugs.
The other group only received the treatment when their white blood cell count fell. Both were given regular testing for the virus and free condoms.
Among those immediately starting anti-retroviral therapy there was only one case of transmission between partners.
In the other group there were 27 HIV transmissions.
"This breakthrough is a serious game changer and will drive the prevention revolution forward. It makes HIV treatment a new priority prevention option," said Michel Sidibe, executive director of the Joint United Nations Programme on HIV/Aids (UNAIDS).
The World Health Organisation says sexual transmission accounts for 80% of all new HIV infections. Its director general, Dr Margaret Chan, described the announcement as a "crucial development".
She added: "The findings from this study will further strengthen and support the new guidance that WHO is releasing in July to help people living with HIV protect their partners."
The value of anti-retrovirals, in preventing transmission, had been speculated for some time after observational studies, but researchers say this is the first time it has been proven in clinical trials.
Keith Alcorn, from the NAM charity, said: "This study resoundingly confirms what lots of smaller studies have been telling us for several years.
"International donors cannot ignore the evidence any longer: HIV treatment is a very powerful form of HIV prevention, and could have a major effect on the HIV epidemic in the worst-affected countries.
"What we need now is a renewed commitment to HIV treatment, and studies to show how to get the maximum benefit out of this breakthrough at country level."