Safi is a seaport in western Morocco, on the Atlantic Ocean. It is Morocco's most important fishing port. Safi is a compactly built, fortified city dominated by a 16th-century ruined castle of the sultans. Safi is also the port for Marrakech, 90 miles inland at the foot of the High Atlas Mountains. It is the traditional southern capital of the sultans and a major trading city, Of interest in the city are the ruined walls, twisting streets, and markets; the casino; the sultan's palace (now a museum of art) and gardens; the 12th-century Koutoubia mosque; the royal tombs; and Aguedal Park.