After the defeat at the Battle of Novara (23 March 1849), Charles Albert abdicated and was succeeded by Victor Emmanuel II. D'Azeglio was again called on to form a cabinet; this time, although the situation was even more difficult, he accepted, concluded a peace treaty, dissolved the Chamber and summoned a new one to ratify it. The treaty was accepted and d'Azeglio continued in office for the next three years. While all the rest of Italy was a prey to despotism, in Piedmont the king maintained the constitution intact in the face of a general wave of reaction. D'Azeglio conducted the country's affairs with tact and ability, and improved its diplomatic relations. With his top aide Cavour taking the lead legislation passed weakening the powers of the Church to own land, control the schools and supervise marriage laws. When the bishops protested they were punished or exiled, inspiring liberal anticlerical elements across Italy.