You can launch a War Rally towards the Cities or Alliance Buildings of non-friendly Alliances after joining an Alliance. If the City owner isn’t in any Alliance, you can only launch a War Rally towards Cities above a certain level.