The purpose of a myringotomy, an ear tube operation, is to both equalize the pressure inside and outside the eardrum and drain fluid.