I never really use alliances. The only time I do is when I'm trading with someone for a certain resource (oil or coal) and I attack another civ, I set up a mpp with the person im trading with so they wont declare on me thus losing the trade and the resources