With an estimated population of 3,210,000, Casablanca is the largest city in Morocco. 60% of all Moroccan companies and almost every bank has headquarters here, making Casablanca the business capital of Morocco and one of the most important commercial centers in North Africa. As such, the city is also the center for foreign trade and Morocco's
main industrial center where construction materials, furniture and glass products are manufactured.
Located near the capital city of Rabat, Casablanca is also the country's main Atlantic seaport with one of the world's largest man-made harbors featuring the 3,180 meter-long Moulay Youssef Jetty with fishing and fish-canning as the leading industries. The city is the site of Hassan II University, established in 1976.
The origins of Casablanca trace to the medieval town of Anfa set on a small plateau which is now one of the city's suburbs. Anfa became the capital of a Berber principality in the aftermath of the Arab invasions of the seventh and eighth centuries. The Berbers embraced Islam but quickly succumbed to heretical doctrines, setting up their own prophet and a "qur'an" in Berber language.
The principality was known as Berghouata and its tribal inhabitants joined a Kharijite rebellion against the Arab governor of Tangier. In the 11th century the Almoravids waged holy war against these heretics who were finally defeated by the Almohad Sultan Abdul Mou'min. The town came under the influence of the Merinids during the 13th century but eventually became independent as the dynasty weakened. It was destroyed by the Portuguese in 1468 in reprisal for piracy. They sent a fleet of 50 vessels and 10,000 soldiers to occupy the town which was sacked and then abandoned. But piracy soon revived and the Portuguese returned in 1515 and destroyed the town once again. In 1575 the town was rebuilt, fortified and renamed Casa Branca by the Portuguese in an attempt to establish control over the area.
However, the Portuguese rulers fell under constant attack by surrounding Muslim tribes and were finally forced to abandon the town following a terrible earthquake in 1755. Under the reign of Sidi Mohamed ben Abdallah (1757-1790) the town was rebuilt with a mosque, madrasah, hammam and a fort and renamed Dar Al Beida (The White House) which the Spanish eventually translated as Casablanca/Dar Beida.