What taxes do landlords need to pay?

Primarily income tax on profits, and CGT when selling. You may also need to register for Making Tax Digital.