Yahya ibn Yahya (or Yahya II) was the sixth Idrisid ruler and sultan of Morocco. He took over after the death of his father Yahya I in 864. He died in 874.