Casamar, also known as Port Victoria and Mackenzie's factory, was a historical coastal fort built in 1882 in Cape Juby near the city of Tarfaya in Morocco, by the founder of the British North West Africa Company, Donald MacKenzie, who positioned there early in 1879 in the goal of trading with commercial caravans coming from Timbuktu and heading to Wadi Noun. Following an attack on the fortress in 1888, the company gave up the building in 1895 to the Sultan of Morocco Moulay Abd al-Aziz, and withdrew from it after the Treaty of Cape Juby.