
The phrase “the lunatics have taken over the asylum” means that those in charge of an organization or situation are incompetent, irrational, and incapable of managing their responsibilities.
It implies a state of chaos where the people least fit to lead are the ones in control.