Bacteria and viruses cause ear infections. Often, ear infections begin after a cold or another upper respiratory infection. The germs travel into your middle ear through the eustachian tube. Once inside, the virus or bacteria can cause your eustachian tubes to swell. The swelling can cause the tube to become blocked, leading to poor eustachian tube function and infected fluid in your middle ear.