Castelo Real was a Portuguese castle established in Mogador, now Essaouira in Morocco, by the Portuguese in 1506.
Construction (1506).
The Portuguese king Dom Manuel ordered Diogo de Azambuja, the founder of Castello da Mina, to build a castle on a small island, now called "La Petite Ile", in the Moroccan locality of Mogador. The role of the castle was to serve as a relay on their routes along the Moroccan coast, between Safi, where the Portuguese were established since the end of the 15th century, and Agadir, which had just been occupied in 1504. The castle could also easily receive supplies from Madeira.
The construction process was accompanied by constant attacks from the Beni Regraga tribe, strongly motivated by Jihad and supported by the Saadian Sheriffs. On several occasions, the garrison was helped by troops sent from Portugal, one of which was a detachment of 350 men sent from Madeira. The Beni Regraga, a sub-tribe of the Masmuda, were the dominant force in the region together with two other sub-tribes originating from the Jebel Hadid, the Iron Mountain, the Haha, and the Chiadma. The tribes blockaded the fortress and in October or November of 1510, they successfully managed to capture the castle under unknown circumstances.
The castle appears in various subsequent documents, as late as 1767 with the map of Théodore Cornut. Soon however the fortifications of Essaouira were updated to become what they are today, and all traces of the Castelo Real have disappeared.
Destruction (18th century).
The Castelo Real was totally demolished in the 18th century, following the plans to build the Essaouira city and fortifications by Mohammed ben Abdallah. 
In its place are now 18th-century fortifications, called the "Scala del Mar". Nothing remains of the Castelo Real, but judging from old maps, its location was at the end of the Scala del Mar.
Other Portuguese fortresses in Morocco.
Altogether, the Portuguese are documented to have seized 6 Moroccan towns, and built 6 stand-alone fortresses on the Moroccan Atlantic coast, between the river Loukos in the north and the river of Sous in the south. Four of them only had a short duration: Graciosa (1489), São João da Mamora (1515), Castelo Real of Mogador (1506–10) and Aguz (1520–25). Two of them were to become permanent urban settlements: Santa Cruz do Cabo de Gué (Agadir, founded in 1505-06), and Mazagan founded in 1514-17. The Portuguese had to abandon most of their settlements between 1541 and 1550, although they were able to keep Ceuta, Tangier and Mazagan.
Notes.
 ;templatestyles src="Reflist/styles.css" / ;