The Buddha uses a simile of a building with a peaked roof to illustrate how all unwholesome qualities have ignorance as their root, converge upon ignorance, and are eradicated with the eradication of ignorance.

Kūṭa sutta - Peak

Thus have I heard - At one time, the Blessed One was dwelling in Sāvatthi, in Jeta's Grove, Anāthapiṇḍika's Park.

There, the Blessed One addressed the bhikkhus: "Bhikkhus."

"Venerable sir," those bhikkhus replied to the Blessed One. The Blessed One said this:

"Bhikkhus, just as whatever rafters there are in a building with a peaked roof, all of them point towards the peak, converge upon at the peak, and are removed together with the removal of the peak so too, bhikkhus, whatever unwholesome qualities there are, all of them have ignorance as their root, converge upon ignorance, and are eradicated with the eradication of ignorance.

Therefore, bhikkhus, you should train yourselves thus: 'We will dwell diligently.' Thus, bhikkhus, you should train yourselves."