Ants will sometimes establish themselves on a beehive roof. They are attracted by honey and dead bees.
Although ants don't bother bees, or hives, long-standing beekeepers suggest pouring an inch of salt in a circle around the hive to discourage ants.
I haven't tried it; I don't mind the ants but the question is, do the bees??