They met at the Jeronimos Monastery to put their signatures to the treaty that they hope will put the last two difficult years behind them.