On 25 July 1767, a treaty were signed between Denmark and Morocco.[13][14] In December 1976, Denmark and Morocco signed an economic and technical agreement.[15] A protection of mutual investment agreement was signed between the two countries in May 2003.[16] In 2004, Denmark and Morocco signed an oil prospecting agreement for oil prospecting in the coast of Tarfaya.[17]