Yahya II ibn Yahya (Arabic: يحيى الثاني بن يحيى) 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.