Aspiration is caused by inhaling materials other than air into the lungs. Bacteria in the aspirated materials cause pneumonia infection. The body's immune system fights such infections, but it may lose the battle, particularly when the person has a weakened immune system from sickness, aging, or medication.