With the second enclosure of the city, following the 1356 occupation by Louis II of Flanders, the castle was no longer necessary as a primary defence, and it was gradually converted from a military strong point into a residential palace. After 1430, when Brabant was annexed by inheritance to Burgundy, Philip the Good ordered the building of new wings for the palace, embellishments to the park, and the building of the "Aula Magna", a gigantic room for royal receptions and other pageantry. The first regular meetings of the States-General, composed of delegates from the middle class, clergy and nobility of the Burgundian Netherlands, were held there in 1465.