Islam in Portugal

According to the 1991 census recorded by Instituto Nacional de Estatística (the National Statistical Institute of Portugal), there were 9,134 Muslims in Portugal, about 0.1% of the total population. The Muslim population in 2019 was approximately 65,000 people. The majority of Muslims in the country are Sunni, followed by approximately 5,000 to 7,000 Shias Muslims. There is also a small number of Ahmadiyya Muslims. Most of the Muslim population originates from the former Portuguese overseas provinces of Guinea-Bissau and Mozambique, most of the latter having their origin in the Indian subcontinent. Most of the Muslims are from Syria and Mozambique.
History.
From 711 to 1249, much of the territory of what is now Portugal (namely south of the Mondego river, but particularly in the Alentejo and the Algarve) was colonized by Arab Muslims, and was called Gharb Al-Andalus (the west of Al-Andalus). The Portuguese Reconquista forced the Arabs out of Algarve in 1249. However, their presence in Andalusia, a neighboring Spanish region, would stay strong for another 250 years. This presence has left some cultural heritage in Portugal, such as Islamic art. The town of Mértola, in the Alentejo, possesses the only partial remains in the country of an ancient mosque, changed and converted into a Catholic church (Church of Nossa Senhora da Anunciação) after the "Reconquista".
Shia Imami Ismaili Muslims.
The Aga Khan Development Network has been present in Portugal since 1983. Agreements were established between the Ismaili Imamat and Portugal, particularly the Protocol of Cooperation with the Portuguese Government signed in 2005 as well as the Protocol of International Cooperation with the Ministry of Foreign Affairs which was signed in 2008. 
In 2015, Lisbon was chosen to be the global seat of the Nizari Shi'a community; the second largest Shi'a denomination in the world. In July 11th, 2018 the Aga Khan decided to move his global headquarters along with his official residence to Portugal. On June 3rd, 2015 Portugal's Minister of State and Foreign Affairs Rui Machete and His Highness the Aga Khan signed a landmark Agreement between the Republic of Portugal and the Ismaili Imamat for the establishment of a formal Seat of the Aga Khan in Portugal. The accord, which was approved by Portugal's Parliament and the President of the Portuguese Republic, will result in intensified cooperation between Portugal and the Aga Khan Development Network in supporting research and the knowledge society as well as improving the quality of life of Portugal's inhabitants. His Highness the Aga Khan recently acquired the Henrique Mendonça Palace, a 12-million-euro estate, to take place as the new Global Headquarters and serve as an administrative structure to coordinate the Aga Khan Development Network. Rui Machete told the Portuguese daily national newspaper Público, “It is natural that an institution with an annual budget of between €600-€900 million will bring something to Portugal." The Aga Khan stated that he also has goals to, “plough money into health and social protection services in Portugal." The Aga Khan is followed by more than 15 million Muslims worldwide, of which 15 thousand who live in Portugal. 
The Aga Khan Development Network moving its headquarters to Lisbon, Portugal allows there to be a connection between Lisbon and the rest the world in which the Aga Khan Development Network is affiliated. The international organization has many ties to Lisbon, not only because the Ismaili population is one of the biggest there, but also because most funding is coming from private sector partners which are located within Lisbon. Through various programs and initiatives, The Aga Khan Development Network is drastically changing the quality of life in Portugal in ways that are beneficial to people living there. The Aga Khan Development Network has been present in Portugal since 1983 focusing on research and innovative direct intervention in the areas of early childhood education, social exclusion and urban poverty. The activities in Portugal operate within the framework of the agreements established between the Aga Khan Development Network and the Protocol of Cooperation with the Portuguese Government.