Sexually transmitted infections (STIs) are infections that you can get from having sex with someone who has the infection. The causes of STIs are bacteria, parasites and viruses. There are more than 20 types of STIs.