Casablanca is the city Moroccans love to leave and visitors love to skip. It began as the Berber port of Anfa, was bombarded into ruins by the Portuguese in 1468, and was flattened again by the earthquake of 1755. Sultan Mohammed ben Abdallah rebuilt it as ad-Dar al-Bayda, the White House, a name that mirrored the Portuguese Casa Branca and ended up as Casablanca. Then the French arrived. After the bombardment of 1907 and the protectorate of 1912, Henri Prost drew a new European town outside the medina walls, and the port became Morocco's economic engine. In January 1943 Churchill and Roosevelt met here at the Anfa Conference, and the city has lived on that film title ever since.
It's a working metropolis of about three million people, not a postcard. Traffic is heavy, the sea wall is long and the old medina is small. What you get instead is a mosque built over the Atlantic that non-Muslims can actually enter, a downtown of art deco and neo-Moorish facades from the 1920s and 1930s, a planned Muslim quarter called the Habous, and a restaurant that recreates a bar from a movie that was never shot here. Three days is the right length: two days for the city, and a third for a day trip to the capital, Rabat, an hour away by train.
Day one is the mosque, the old medina and the Corniche, day two the Habous, the Museum of Moroccan Judaism and the art deco center, and day three is Rabat. Start on a Monday: the Jewish museum is closed on Saturday and Sunday and shuts at 13:00 on Friday, the mosque runs fewer tours on Fridays, and a Wednesday in Rabat avoids the weekend crowds. For the rest of the country see Morocco; Marrakech, Fes and Tangier are all a train ride away.