How do you beat Solomon Sallow in Hogwarts Legacy?

Quick answer: Ignore the Inferi as much as you can and put all your damage on Solomon. The fight ends when his health is gone, even if Inferi are still alive.
Show walkthrough (story spoilers)
Where he is
Solomon Sallow is fought in the Feldcroft catacombs during In the Shadow of the Relic. He shows up after you climb the bone stairs and talk to Sebastian.
Focus on Solomon
Inferi keep joining the fight, but the battle ends as soon as Solomon’s health bar is empty. Put your damage spells on him and only deal with Inferi that get in your way. Fire spells clear Inferi quickly when you need space.
His spells
Solomon casts normal combat spells such as Confringo, Incendio, Levioso and Glacius. Block with Protego when you see the warning and dodge out of the way of the rest. He is not much tougher than a strong dark wizard.
Burst damage
Save your Ancient Magic bar and use it on him for a big hit. Combos with Levioso followed by damage spells work well while he is in the air. Any build can win this fight.
After the fight
Follow Sebastian out of the catacombs and talk to him. See the In the Shadow of the Relic walkthrough for what comes next.
