As a virtue, loyalty is a double-edged sword.
When we defend a son falsely accused of cheating on an exam, when we stick by a spouse who through a series of blunders has gotten us deeply into debt, we are acting with an admirable largesse of the soul. Such loyalty is a commendable virtue.