What is the purpose of adding NaOH ot the reaction?

This is the from our Benzil Lab.

zXCX