PCP is caused by a fungus called Pneumocystis jirovecii. Many people live with this fungus in their lungs every day. It's common all over the world. It often causes little to no trouble for people with healthy immune systems.
But if your immune system is weakened, you have a greater chance of getting PCP. Your immune system may be weakened by HIV or AIDS, cancer, organ transplant, medicines that suppress the immune system, or another condition that causes the immune system to not work well. PCP takes advantage of your weak immune system to attack your lungs.
If not treated right away, PCP can be severe and even fatal.