Si Musa was descended from a family of black slaves which served the Moroccan makhzen and reached the highest offices in the country. He was first hajib then grand vizier under Muhammad ibn Abd al-Rahman, who reigned from 1859 to 1873. He began the construction of the palace in 1859 and continued during the 1860s. Today, the "Grand Riad" or large riad garden and its adjoining rooms in the northern part of the palace date from Si Musa's time and are also consequently known as the Dar Si Moussa. The two grand chambers on the east and west sides of the garden contain an inscription which dates their construction to 1866-67. Ba Ahmed ibn Musa was hajib to Sultan Moulay Hassan and, upon the latter's death, ensured his son Abdelaziz's accession to the throne in 1894, earning him a promotion to grand vizier. As Abdelaziz was only sixteen, Ba Ahmed became the effective ruler of Morocco until his own death from disease in 1900. He progressively expanded his father's palace throughout these years as grand vizier, adding to it piece by piece as new land became available for purchase. During his tenure, he was also supported by his two brothers Si Sa'id and Idris. Si Sa'id built his own palace north of here during that time, the Dar Si Said, which today serves as a museum. Ba Ahmed is responsible for constructing most of the Bahia Palace's southern parts, which included various smaller courtyards and riad gardens. On the east side of this palace complex he also created a vast private park and garden, complete with a central water basin and an access point via a bridge over the adjacent street linking it to the palace. His architect was a man named Muhammad ibn Makki al-Misfiwi, originally from Safi, who was born in 1857 and died in 1926. The palace's growth overtook much of the previously existing neighbourhood north of the Mellah and resulted in major changes in the local street layout. The growing palace housed Ba Ahmed's servants and his harem, and the name al-Bahia, meaning "the Brilliant", was reportedly the name of his favourite wife. The entire palace was built on one level, possibly as Ba Ahmed's own physique made it more difficult for him to go up and down stairs.
After Ba Ahmed's death his palace became royal property. Mere hours after his passing, Sultan Abdelaziz reportedly ordered the palace to be looted for valuable items. In 1908 Madani el-Glaoui, brother of Thami el-Glaoui, took control of the palace and used it to entertain foreign guests. He added an upper floor for the first time to some parts of the palace. Then, in 1912, after the installation of the French Protectorate in Morocco, the palace was converted into the residence of the Frenchresident-general in the city. After Moroccan independence, the palace was again used as a royal residence for King Mohammed V before being transferred to the Moroccan Ministry of Culture under King Hassan II, which turned it into a tourist attraction. Today the palace is one of the most visited tourist attractions in Morocco; the government counted 410,141 visitors from January to April 2019, more than any other heritage site in the country. The palace is occasionally still used by the King of Morocco to receive foreign dignitaries or host events.
Architecture
Layout
The palace's labyrinthine layout, which does not reveal a clear unified plan, is due to the fact that it was expanded in a piecemeal fashion in different stages over many years. It comprises a number of inner courtyards and riad gardens, around which are arranged various rooms and chambers. The main palace complex today covers almost 2 hectares. The palace is entered via a horseshoe-arch doorway from the main street, beyond which a long garden path leads to the palace. A minor courtyard leads into the Small Riad, a square courtyard garden divided by walkways along its two central axes and surrounded by richly decorated galleries and chambers. One of the chambers was Ba Ahmed's diwan or Council Chamber. A second floor apartment above this riad was added by Madani el-Glaoui after Ba Ahmed's death. East of the Small Riad is a small inner courtyard surrounded by ornate chambers. East of this is the Grand Courtyard or Large Courtyard, the most impressive part of the palace. Measuring 50 by 30 meters, it is paved with ItalianCarrara marble and surrounded by an elegant and colourful wooden gallery. These galleries give access to some 80 rooms which are believed to have been part of Ba Ahmed's harem and the residences of his concubines. At the east end of this courtyard is a grand hall, measuring 20 by 8 meters and featuring a high ceiling with some of the best painted decoration in the palace. An inscription dates the construction of this chamber to 1896-1897, which was probably the last major expansion of the palace. West of the Grand Courtyard is a private apartment built by Ba Ahmed in 1898 for his first wife, Lalla Zaynab. North of the Grand Courtyard areas is another vast courtyard known as the Grand Riad or Large Riad. Along with its adjoining rooms, it is the oldest part of the palace and dates from the time of Ba Ahmed's father, Si Musa. The courtyard is occupied, as its name implies, by a very large riad garden which is still planted with trees from the 19th century. The garden is flanked to the east and the west by two grand halls with excellent decoration and an inscription which dates their construction to 1866-67. Further east, beyond the main palace, are the remains of a series of gardens and parks created by Ba Ahmed. Among other elements, they contained a large water basin. On the south side of the palace are other annexes includes stables and a mosque with a minaret.
Decoration
The palace is most famous for its decoration. Its walls feature stucco carved with Arabic inscriptions, geometric patterns, arabesques, and muqarnas. Its floors are paved with marble and zellij tiles. Among its most famous elements are the cedar-wood ceilings painted with colourful floral patterns, along with the carved and painted wooden canopies of major doorways. The materials for this decoration were imported by Ba Ahmed from all over Morocco, including marble from Meknes, cedar wood from the Middle Atlas, and tiles from Tetouan. Artisans from all across the country were also employed for the job.