There is conflicting information around this. The information on the U.S. Consulate General web site is incorrect. Morocco has no legal restrictions affecting entry or residency of people with HIV/AIDS in place.
Othman Mellouk, Association de lutte contre le sida (ALCS), Marrakech, via e-mail to the authors, July 26, 2010 wrote:
"Some isolated deportations were observed in the 1990s. This practice had no legal basis, was denounced by civil society and has since stopped."
Dr. Kamal Alami, UNAIDS Country Officer, Rabat, Morocco, via e-mail, July 26, 2010
"I confirm that the information provided by the U.S. Consulate General is inaccurate. Morocco has no HIV-testing requirement for residency permit applicants."
Consulate General of the U.S.A. Casablanca, Morocco web site, http://casablanca.usconsulate.gov/visareqformorocco.html (consulted February 14, 2009)
"HIV tests are mandatory for all persons (age 15 to 60) wishing to reside in Morocco. The HIV test must be conducted in Morocco at a facility approved by the Moroccan Ministry of Health. A residence permit will not be issued until the absence of HIV has been determined."
Anonymous, to the authors via e-mail, March 6, 2009
"I’m a citizen of Switzerland who has worked for a multinational company in Morocco from 2007 to 2008. I had to apply for a residency and work permit, but was never required to perform HIV-testing."
For updated information, please go to: www.hivrestrictions.org
Male to Male relationships: Not Legal
Punishments for male to male relationships: Imprisonment of 10 years or more
Female to Female Relationships: Not Legal
Marriage and Substitutes for Marriage: No law
For updated information, please go to: http://ilga.org