Following marathon negotiations all night, the Likud and Bayit Yehudi struck up a deal Wednesday, completing the formation of Prime Minister Benjamin Netanyahu’s coalition government a mere hour and a half before deadline.

In a statement released Thursday morning, Bayit Yehudi confirmed that the agreement had been signed.

“Bayit Yehudi received the education and diaspora affairs portfolios for its leader Naftali Bennett, justice minister for MK Ayelet Shaked, agriculture minister for MK Uri Ariel, and the position of deputy defense minister,” the statement read.