Having anal sex can increase a person's risk for anal cancer. Having multiple sex partners also raises the risk of anal cancer.