And it is six decades of tyranny in Egypt that has left it a deeply divided country, where large segments do not know or trust one another, and where conspiracy theories abound. All of Egypt today needs to go on a weekend retreat with a facilitator and reflect on one question: How did India, another former British colony, get to be the way it is (Hindu culture aside)?

Image Thomas L. Friedman Credit... Josh Haner/The New York Times

The first answer is time. India has had decades of operating democracy, and, before independence, struggling for democracy. Egypt has had less than two years. Egypt’s political terrain was frozen and monopolized for decades — the same decades that political leaders from Mahatma Gandhi to Jawaharlal Nehru to Manmohan Singh “were building an exceptionally diverse, cacophonous, but impressively flexible and accommodating system,” notes the Stanford University democracy expert Larry Diamond, the author of “The Spirit of Democracy: The Struggle to Build Free Societies Throughout the World.”

Also, the dominant political party in India when it overthrew its colonial overlord “was probably the most multiethnic, inclusive and democratically minded political party to fight for independence in any 20th-century colony — the Indian National Congress,” said Diamond. While the dominant party when Egypt overthrew Hosni Mubarak’s tyranny, the Muslim Brotherhood, “was a religiously exclusivist party with deeply authoritarian roots that had only recently been evolving toward something more open and pluralistic.”

Moreover, adds Diamond, compare the philosophies and political heirs of Mahatma Gandhi and Sayyid Qutb, the guiding light of the Muslim Brotherhood. “Nehru was not a saint, but he sought to preserve a spirit of tolerance and consensus, and to respect the rules,” notes Diamond. He also prized education. By contrast, added Diamond, “the hard-line Muslim Brotherhood leaders, who have been in the driver’s seat since Egypt started moving toward elections, have driven away the moderates from within their party, seized emergency powers, beaten their rivals in the streets, and now are seeking to ram a constitution that lacks consensus down the throats of a large segment of Egyptian society that feels excluded and aggrieved.”

Then there is the military. Unlike in Pakistan, India’s postindependence leaders separated the military from politics. Unfortunately, in Egypt after the 1952 coup, Gamel Abdel Nasser brought the military into politics and all of his successors, right up to Mubarak, kept it there and were sustained by both the military and its intelligence services. Once Mubarak fell, and the new Brotherhood leaders pushed the army back to its barracks, Egypt’s generals clearly felt that they had to cut a deal to protect the huge web of economic interests they had built. “Their deep complicity in the old order led them to be compromised by the new order,” said Diamond. “Now they are not able to act as a restraining influence.”