This vast complex is among the most sumptuous Baroque buildings in Portugal and one of the biggest buildings constructed in Europe in the 18th century. The palace was built symmetrically from a central axis, occupied by the basilica, and continues lengthwise through the main façade until two major towers. The structures of the convent are located behind the main façade. The building also includes a major library, with about 40,000 rare books.
The basilica is decorated with several Italian statues and includes six historical pipe organs and two carillons, composed of 92 bells.
The exact site was chosen in 1713 and purchased in 1716. Construction began by the laying of the first stone on November 17, 1717 with a grand ceremony in the presence of the king, his entire court and the Cardinal Patriarch of Lisbon.
Initially it was a relatively small project for a friary of 13 Capuchin friars, who were to observe strict poverty. However, when the flow of gold from Brazil started to arrive in Lisbon in abundance, the king changed his plans and announced the construction of a sumptuous palace[1] along with a much enlarged friary. This immense wealth allowed to king to be a generous patron of arts.
He appointed a German goldsmith Johann Friedrich Ludwig (called by the Portuguese : João Frederico Ludovice) as his architect. Ludwig had studied architecture in Rome and knew contemporary Italian art. The extent of Ludwig's responsibility is unclear, as several other architects were involved in this project: the Milanese builder Carlos Baptista Garbo, Custódio Vieira, Manuel da Maia and even his own son António. However the application of the same architectural style over the whole building suggests the work of Ludwig as the head-architect in charge of the Royal Office of Works (Real Obra).
Construction lasted 13 years and mobilized a vast army of workers from the entire country (a daily average of 15,000 but at the end climbing to 30,000 and a maximum of 45,000), under the command of António Ludovice, the son of the architect. In addition 7,000 soldiers were assigned to preserve order at the construction site. They used 400 kg of gunpowder to blast through the bedrock for the laying of foundations. There was even a hospital for the sick or wounded workers. A total of 1,383 workers died during the construction.
The facade is 220 meters long. The whole complex covers 37,790 m² with about 1,200 rooms, more than 4,700 doors and windows, and 156 stairways.
When complete the building consisted of a friary capable of sheltering 330 friars, along with a royal palace and a huge library of 40,000 books, embellished with marble, exotic woods and countless artworks taken from France, Flanders and Italy, which included six monumental pipe organs and the two carillons.
The basilica and the convent were inaugurated on the day of the King's 41st birthday on October 22, 1730. The festivities lasted for 8 days and were of a scale never seen before in Portugal. The basilica was dedicated to Our Lady and to St. Anthony.
However the building was not finished. The lantern on the cupola was completed in 1735. Work continued till 1755, when the work force was needed in Lisbon by the devastations of the Lisbon earthquake.
http://en.wikipedia.org/wiki/Mafra_National_Palace