The middle ear contains an air-filled cavity called the tympanic cavity, which houses the three ossicles (malleus, incus, and stapes) and plays a vital role in sound transmission.