To "earn loyalty," one may use various different phrases with synonymous meanings. One such phrase could be "cultivate devotion," which implies a long-term effort to build a relationship with someone or something. Another synonym could be "forge allegiance," which implies a sense of commitment and mutual support. "Win over dedication" is also a similar phrase that indicates the act of gaining someone's unwavering loyalty through sincere effort and dedication. Other synonyms may include "gain trust," "establish a bond," "foster faithfulness," or "build an allegiance." Ultimately, whether in business or personal relationships, the key to earning loyalty is consistent effort and genuine care.