Mogadishu's name is thought to derive from the Persian phrase "Maqad-i-Shah," meaning "seat of the Shah," reflecting the city's early Persian trading influence, though some scholars trace it instead to the Arabic word for "holy," pointing to its religious significance.