Situated at the northwestern corner of Africa, with its northernmost point only 29 km (18 mi) south of Gibraltar, Morocco claims a total area of 446,550 sq km (172,414 sq mi), of which the Western Sahara comprises 252,120 sq km (97,344 sq mi). The Western Sahara is claimed and administered by Morocco, but as of late 2002, sovereignty is unresolved. Comparatively, the area occupied by Morocco is slightly larger than the state of California. Morocco extends 1,809 km (1,124 mi) NE – SW and 525 km (326 mi) SE – NW . Morocco proper is bordered on the N by the Mediterranean Sea and the two Spanish enclaves of Ceuta and Melilla, on the E and SE by Algeria, on the S by Western Sahara, and on the W by the Atlantic Ocean, with a total land boundary length of 2,018 km (1,254 mi) and a coastline of 1,835 km (1,140 mi).
Morocco's capital city, Rabat, is located on the Atlantic coast.