The most common cause of a perforated eardrum is middle ear infection, or otitis media.