The war in Ukraine has prompted the biggest rethinking of U.S. foreign policy since the Sept. 11, 2001, attacks, infusing the United States with a new sense of mission and changing its strategic calculus with allies and adversaries alike.

The Russian invasion has bonded America to Europe more tightly than at any time since the Cold War and deepened U.S. ties with Asian allies, while forcing a reassessment of rivals like China, Iran and Venezuela.

And it has re-energized Washington’s leadership role in the democratic world just months after the chaotic U.S. withdrawal from Afghanistan ended 20 years of conflict on a dismal note.