The level of an alliance is raised by the actions of its members. When members destroy pirates, scan planets or upgrade buildings, they accumulate alliance experience, which will increase the alliance level when reaching certain thresholds. Moreover, helping your comrades with construction or battle will help to increase alliance experience too.