Attack cards are used, well... to attack ! You need 1 or more set(s) of 3 identical cards to inflict the amount of damage listed on the card.
Building cards are used to store units so you can do more devastating attacks !
Defense cards are used to defend against certain type of attacks !
Special cards have special attributes unique to each card !