Washington

ONE year after the revolution that ousted President Hosni Mubarak, the Egyptian military is closing down civil society organizations and trying to manipulate the constitution-writing process to serve its narrow interests. Meanwhile, in Pakistan, where the military has also held sway for more than half the country’s existence — for much of that time, with America’s blessing — a new civil-military crisis is brewing.

For the United States, the parallels are clear and painful. Egypt and Pakistan are populous Muslim-majority nations in conflict-ridden regions, and both have long been allies and recipients of extensive military and economic aid.

Historically, American aid tapers off in Pakistan whenever civilians come to power. And in Egypt, Presidents George W. Bush and Barack Obama both resisted pressure from Congress to cut aid to Mr. Mubarak despite his repression of peaceful dissidents.

It is no wonder that both Egyptians and Pakistanis express more anger than appreciation toward the United States. They have seen Washington turn a blind eye to human-rights abuses and antidemocratic practices because of a desire to pursue regional objectives — Israeli security in the case of Egypt, and fighting Al Qaeda in the case of Pakistan.