The struggle itself, is indeed vain. For ages, we've seen the necessity for humanity to be put on the map of history, yet, for ages, we've seen the victories of humanity turn into vanity by time. Nevertheless, it is the human will, that puts a value tag on such vanity, so that there may be a mask, as if it is known by humanity, which defines the purpose of life.
Amidst the pool of vanity, lies an impossibly intricate design of perfection, which has been the pursue of man's nature to rise above vanity. Therefore, only the right understanding of such design and its Designer could take one away from vanity into the realm beyond and devoid of vanity, a realm not by human idealistic definition of any kind, and to have communion with this Designer, the source that is faithful in His own design and revelation and terms.