Ants often nest in various plants including trees, if this is the case, the ants will protect the tree. It could be a case of a different insect infestation that is attracting the ants. How does the tree itself look? Are the leaves mottled, curled or turning brown? Are large sections of bark falling off?