Being part of an active alliance can provide you with gem rewards through alliance events and challenges. Successful completion of these activities can lead to gem rewards for all alliance members.