Throughout Tanzania, sex acts between men are illegal and carry a maximum penalty of life imprisonment. According to a 2007 Pew Research Centre survey, 95 percent of Tanzanians believed that homosexuality should not be accepted by society.