Moscow has avoided the Afghanistan-style quagmire that many predicted, and has refused to be drawn into the Shia camp against the Sunnis. It strengthened ties to the Kurds, continued to court Egypt, and managed to remain on speaking terms with the Saudis and the Qataris.