In the late 1830s, Luís Alves was appointed instructor in swordsmanship and horsemanship to the young Pedro II. Ties of duty had drawn the two men together, but a long-lasting friendship and personal devotion also developed. Pedro II said many years later that he regarded Luís Alves as "loyal and my friend". According to historian Heitor Lira, Luís Alves was "one of the rare, sincere and profoundly convicted monarchists and friends of the King the Emperor and of the Dynasty House of Braganza. He placed his sword not only in service to a united and strong Brazil, but also to a worthy and respected Monarch".