Four parties agree on the alliance