Why has the UN not solved the Arab-Israeli conflict after so many years?

The UN is meant to be the guardian of human rights and world peace. Yet the UN has been unable to solve the Arab-Israeli conflict and has been accused of hypocrisy and bias against Israel. How can this be?