Answer:
Huitzilopochtli played the role of finding a home for the Aztecs. The Aztecs were ordered by Huitzilopochtli to abandon their old land of Aztlan and find new land. The god told them to find an eagle perching on a cactus where they would built a city.