<?xml version="1.0" encoding="UTF-8"?><JUDGMENT xmlns:fmx="http://opoce" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://formex.publications.europa.eu/schema/formex-05.55-20141201.xd"><BIB.JUDGMENT><REF.CASE FILE="n.a."><NO.CASE>C‑544/15</NO.CASE></REF.CASE><NO.CELEX>62015CJ0544</NO.CELEX><NO.ECLI ECLI="ECLI:EU:C:2017:255">EU:C:2017:255</NO.ECLI><NO.SEQ>0001</NO.SEQ><PAGE.FIRST.ECR>1</PAGE.FIRST.ECR><PAGE.SEQ>1</PAGE.SEQ><PAGE.LAST.ECR>11</PAGE.LAST.ECR><PAGE.TOTAL>11</PAGE.TOTAL><AUTHOR>CJ</AUTHOR></BIB.JUDGMENT><CURR.TITLE><PAGE.HEADER><P>JUDGMENT OF <DATE ISO="20170404">4. 4. 2017</DATE> — CASE C‑544/15</P><P>FAHIMIAN</P></PAGE.HEADER></CURR.TITLE><TITLE><TI><P><HT TYPE="UC">Judgment of the Court</HT> (Grand Chamber)</P><P><DATE ISO="20170404">4 April 2017</DATE><NOTE TYPE="FOOTNOTE" NUMBERING="ARAB" NOTE.ID="E0001"><P>Language of the case: German.</P></NOTE></P></TI></TITLE><INDEX><KEYWORD>Reference for a preliminary ruling</KEYWORD><KEYWORD>Area of freedom, security and justice</KEYWORD><KEYWORD>Directive 2004/114/EC</KEYWORD><KEYWORD>Article 6(1)(d)</KEYWORD><KEYWORD>Conditions of admission of third country nationals</KEYWORD><KEYWORD>Refusal of admission</KEYWORD><KEYWORD>Concept of <QUOT.START CODE="2018" REF.END="QE0001" ID="QS0001"/>threat to public security<QUOT.END REF.START="QS0001" CODE="2019" ID="QE0001"/></KEYWORD><KEYWORD>Margin of discretion</KEYWORD></INDEX><JUDGMENT.INIT><P>In Case C‑544/15,</P><P>REQUEST for a preliminary ruling under Article 267 TFEU from the Verwaltungsgericht Berlin (Administrative Court, Berlin, Germany), made by decision of <DATE ISO="20151014">14 October 2015</DATE>, received at the Court on <DATE ISO="20151019">19 October 2015</DATE>, in the proceedings</P></JUDGMENT.INIT><PARTIES><PLAINTIFS><P><HT TYPE="BOLD">Sahar Fahimian</HT></P></PLAINTIFS><AGAINST>v</AGAINST><DEFENDANTS><P><HT TYPE="BOLD">Bundesrepublik Deutschland,</HT></P></DEFENDANTS><PRESENCE><PRESENCE.INIT>intervener:</PRESENCE.INIT><P><HT TYPE="BOLD">Stadt Darmstadt,</HT></P></PRESENCE></PARTIES><PREAMBLE><PREAMBLE.INIT><P>THE COURT (Grand Chamber),</P><P>composed of K. Lenaerts, President, A. Tizzano, Vice-President, M. Ilešič, L. Bay Larsen, T. von Danwitz, E. Juhász, M. Berger, A. Prechal, M. Vilaras and E. Regan (Rapporteur), Presidents of Chambers, A. Rosas, A. Borg Barthet, D. Šváby, E. Jarašiūnas and C. Lycourgos, Judges,</P><P>Advocate General: M. Szpunar,</P><P>Registrar: K. Malacek, Administrator,</P></PREAMBLE.INIT><GR.VISA><VISA>having regard to the written procedure and further to the hearing on <DATE ISO="20160920">20 September 2016</DATE>,</VISA></GR.VISA><GR.CONSID><CONSID><P>after considering the observations submitted on behalf of:</P><LIST TYPE="DASH"><ITEM><P>Ms Fahimian, by P. von Auer, Rechtsanwalt,</P></ITEM><ITEM><P>the German Government, by J. Möller and T. Henze, acting as Agents,</P></ITEM><ITEM><P>the Belgian Government, by C. Pochet and M. Jacobs, acting as Agents,</P></ITEM><ITEM><P>the Greek Government, by T. Papadopoulou, acting as Agent,</P></ITEM><?PAGE NO="2"?><ITEM><P>the French Government, by D. Colas, F.X. Bréchot and E. Armoët, acting as Agents,</P></ITEM><ITEM><P>the Italian Government, by G. Palmieri, acting as Agent, and W. Ferrante, avvocato dello Stato,</P></ITEM><ITEM><P>the Polish Government, by B. Majczyna, acting as Agent,</P></ITEM><ITEM><P>the European Commission, by C. Cattabriga and F. Erlbacher, acting as Agents,</P></ITEM></LIST></CONSID></GR.CONSID><GR.VISA><VISA>after hearing the Opinion of the Advocate General at the sitting on <DATE ISO="20161129">29 November 2016</DATE>,</VISA></GR.VISA><PREAMBLE.FINAL>gives the following</PREAMBLE.FINAL></PREAMBLE><CONTENTS.JUDGMENT><GR.SEQ LEVEL="1"><TITLE><TI><P><HT TYPE="BOLD">Judgment</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0001"><NO.P>1</NO.P><TXT>This reference for a preliminary ruling concerns the interpretation of Article 6(1)(d) of Council Directive 2004/114/EC of <DATE ISO="20041213">13 December 2004</DATE> on the conditions of admission of third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service (<REF.DOC.OJ COLL="L" NO.OJ="375" PAGE.FIRST="12" DATE.PUB="2004">OJ 2004 L 375, p. 12</REF.DOC.OJ>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0002"><NO.P>2</NO.P><TXT>The request has been made in proceedings between Ms Sahar Fahimian and the Bundesrepublik Deutschland (Federal Republic of Germany) concerning the refusal to grant her a visa for the purpose of study.</TXT></NP.ECR><GR.SEQ LEVEL="2"><TITLE><TI><P><HT TYPE="BOLD">Legal context</HT></P></TI></TITLE><GR.SEQ LEVEL="3"><TITLE><TI><P><HT TYPE="BOLD"><HT TYPE="ITALIC">EU law</HT></HT></P></TI></TITLE><GR.SEQ LEVEL="4"><TITLE><TI><P><HT TYPE="ITALIC">Directive 2004/114</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0003"><NO.P>3</NO.P><TXT>Recitals 6, 7, 14, 15 and 24 of Directive 2004/114 state:</TXT><P><QUOT.S LEVEL="1"><CONSID><NP><NO.P><QUOT.START CODE="2018" REF.END="QE0002" ID="QS0002"/>(6)</NO.P><TXT>One of the objectives of Community action in the field of education is to promote Europe as a whole as a world centre of excellence for studies and vocational training. Promoting the mobility of third-country nationals to the Community for the purpose of studies is a key factor in that strategy. The approximation of the Member States’ national legislation on conditions of entry and residence is part of this.</TXT></NP></CONSID><CONSID><NP><NO.P>(7)</NO.P><TXT>Migration for the purposes set out in this Directive, which is by definition temporary and does not depend on the labour-market situation in the host country, constitutes a form of mutual enrichment for the migrants concerned, their country of origin and the host Member State and helps to promote better familiarity among cultures.</TXT></NP></CONSID><P>…</P><CONSID><NP><NO.P>(14)</NO.P><TXT>Admission for the purposes set out in this Directive may be refused on duly justified grounds. In particular, admission could be refused if a Member State considers, based on an assessment of the facts, that the third-country national concerned is a potential threat to public policy or public security. The notion of public policy may cover a conviction for committing a serious crime. In this context it has to be noted that the notions of public policy and public security also cover cases in which a third-country national belongs or has belonged to an association which supports terrorism, supports or has supported such an association, or has or has had extremist aspirations.</TXT></NP></CONSID><?PAGE NO="3"?><CONSID><NP><NO.P>(15)</NO.P><TXT>In case of doubts concerning the grounds of the application of admission, Member States should be able to require all the evidence necessary to assess its coherence, in particular on the basis of the applicant’s proposed studies, in order to fight against abuse and misuse of the procedure set out in this Directive.</TXT></NP></CONSID><P>…</P><CONSID><NP><NO.P>(24)</NO.P><TXT>Since the objective of this Directive, namely to determine the conditions of admission of third-country nationals for the purposes of study, pupil exchange, unremunerated training or voluntary service, cannot be sufficiently achieved by the Member States and can, by reason of its scale or effects, be better achieved at Community level, the Community may adopt measures, in accordance with the principle of subsidiarity as set out in Article 5 of the Treaty. In accordance with the principle of proportionality as set out in that Article, this Directive does not go beyond what is necessary to achieve that objective.<QUOT.END REF.START="QS0002" CODE="2019" ID="QE0002"/></TXT></NP></CONSID></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0004"><NO.P>4</NO.P><TXT>In accordance with Article 1 of the directive:</TXT><P><QUOT.S LEVEL="1"><ALINEA><P><QUOT.START CODE="2018" REF.END="QE0003" ID="QS0003"/>The purpose of this Directive is to determine:</P><LIST TYPE="alpha"><ITEM><NP><NO.P>(a)</NO.P><TXT>the conditions for admission of third-country nationals to the territory of the Member States for a period exceeding three months for the purposes of studies, pupil exchange, unremunerated training or voluntary service;</TXT></NP></ITEM><ITEM><NP><NO.P>(b)</NO.P><TXT>the rules concerning the procedures for admitting third-country nationals to the territory of the Member States for those purposes.<QUOT.END REF.START="QS0003" CODE="2019" ID="QE0003"/></TXT></NP></ITEM></LIST></ALINEA></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0005"><NO.P>5</NO.P><TXT>Article 3 of the directive, <QUOT.START CODE="2018" REF.END="QE0004" ID="QS0004"/>Scope<QUOT.END REF.START="QS0004" CODE="2019" ID="QE0004"/>, provides in paragraph 1 that it is to apply in particular <QUOT.START CODE="2018" REF.END="QE0005" ID="QS0005"/>to third-country nationals who apply to be admitted to the territory of a Member State for the purpose of studies<QUOT.END REF.START="QS0005" CODE="2019" ID="QE0005"/>.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0006"><NO.P>6</NO.P><TXT>Chapter II of the directive concerns <QUOT.START CODE="2018" REF.END="QE0006" ID="QS0006"/>Conditions of admission<QUOT.END REF.START="QS0006" CODE="2019" ID="QE0006"/>. It consists of Articles 5 to 11 of the directive. Article 5 reads as follows:</TXT><P><QUOT.S LEVEL="1"><ALINEA><QUOT.START CODE="2018" REF.END="QE0007" ID="QS0007"/>The admission of a third-country national under this Directive shall be subject to the verification of documentary evidence showing that he/she meets the conditions laid down in Article 6 and in whichever of Articles 7 to 11 applies to the relevant category.<QUOT.END REF.START="QS0007" CODE="2019" ID="QE0007"/></ALINEA></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0007"><NO.P>7</NO.P><TXT>Article 6 of the directive provides:</TXT><P><QUOT.S LEVEL="1"><PARAG IDENTIFIER="006.001"><NO.PARAG><QUOT.START CODE="2018" REF.END="QE0008" ID="QS0008"/>1.</NO.PARAG><ALINEA><P>A third-country national who applies to be admitted for the purposes set out in Articles 7 to 11 shall:</P><LIST TYPE="alpha"><ITEM><NP><NO.P>(a)</NO.P><TXT>present a valid travel document as determined by national legislation. Member States may require the period of validity of the travel document to cover at least the duration of the planned stay;</TXT></NP></ITEM><ITEM><NP><NO.P>(b)</NO.P><TXT>if he/she is a minor under the national legislation of the host Member State, present a parental authorisation for the planned stay;</TXT></NP></ITEM><ITEM><NP><NO.P>(c)</NO.P><TXT>have sickness insurance in respect of all risks normally covered for its own nationals in the Member State concerned;</TXT></NP></ITEM><ITEM><NP><NO.P>(d)</NO.P><TXT>not be regarded as a threat to public policy, public security or public health;</TXT></NP></ITEM><?PAGE NO="4"?><ITEM><NP><NO.P>(e)</NO.P><TXT>provide proof, if the Member State so requests, that he/she has paid the fee for processing the application on the basis of Article 20.</TXT></NP></ITEM></LIST></ALINEA></PARAG><PARAG IDENTIFIER="006.002"><NO.PARAG>2.</NO.PARAG><ALINEA>Member States shall facilitate the admission procedure for the third-country nationals covered by Articles 7 to 11 who participate in Community programmes enhancing mobility towards or within the Community.<QUOT.END REF.START="QS0008" CODE="2019" ID="QE0008"/></ALINEA></PARAG></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0008"><NO.P>8</NO.P><TXT>Articles 7 to 11 of the directive relate to the specific conditions of admission for students, school pupils, unremunerated trainees and volunteers, and to the mobility of students. Article 7, <QUOT.START CODE="2018" REF.END="QE0009" ID="QS0009"/>Specific conditions for students<QUOT.END REF.START="QS0009" CODE="2019" ID="QE0009"/>, provides in paragraph 1:</TXT><P><QUOT.S LEVEL="1"><ALINEA><P><QUOT.START CODE="2018" REF.END="QE0010" ID="QS0010"/>In addition to the general conditions stipulated in Article 6, a third-country national who applies to be admitted for the purpose of study shall:</P><LIST TYPE="alpha"><ITEM><NP><NO.P>(a)</NO.P><TXT>have been accepted by an establishment of higher education to follow a course of study;</TXT></NP></ITEM><ITEM><NP><NO.P>(b)</NO.P><TXT>provide the evidence requested by a Member State that during his/her stay he/she will have sufficient resources to cover his/her subsistence, study and return travel costs. Member States shall make public the minimum monthly resources required for the purpose of this provision, without prejudice to individual examination of each case;</TXT></NP></ITEM><ITEM><NP><NO.P>(c)</NO.P><TXT>provide evidence, if the Member State so requires, of sufficient knowledge of the language of the course to be followed by him/her;</TXT></NP></ITEM><ITEM><NP><NO.P>(d)</NO.P><TXT>provide evidence, if the Member State so requires, that he/she has paid the fees charged by the establishment.<QUOT.END REF.START="QS0010" CODE="2019" ID="QE0010"/></TXT></NP></ITEM></LIST></ALINEA></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0009"><NO.P>9</NO.P><TXT>In accordance with Article 12 of the directive:</TXT><P><QUOT.S LEVEL="1"><PARAG IDENTIFIER="012.001"><NO.PARAG><QUOT.START CODE="2018" REF.END="QE0011" ID="QS0011"/>1.</NO.PARAG><ALINEA>A residence permit shall be issued to the student for a period of at least one year and renewable if the holder continues to meet the conditions of Articles 6 and 7. Where the duration of the course of study is less than one year, the permit shall be valid for the duration of the course.</ALINEA></PARAG><PARAG IDENTIFIER="012.002"><NO.PARAG>2.</NO.PARAG><ALINEA><P>Without prejudice to Article 16, renewal of a residence permit may be refused or the permit may be withdrawn if the holder:</P><LIST TYPE="alpha"><ITEM><NP><NO.P>(a)</NO.P><TXT>does not respect the limits imposed on access to economic activities under Article 17;</TXT></NP></ITEM><ITEM><NP><NO.P>(b)</NO.P><TXT>does not make acceptable progress in his/her studies in accordance with national legislation or administrative practice.<QUOT.END REF.START="QS0011" CODE="2019" ID="QE0011"/></TXT></NP></ITEM></LIST></ALINEA></PARAG></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0010"><NO.P>10</NO.P><TXT>Article 18 of the directive, <QUOT.START CODE="2018" REF.END="QE0012" ID="QS0012"/>Procedural guarantees and transparency<QUOT.END REF.START="QS0012" CODE="2019" ID="QE0012"/>, provides in paragraphs 2 and 4:</TXT><P><QUOT.S LEVEL="1"><PARAG IDENTIFIER="018.002"><NO.PARAG><QUOT.START CODE="2018" REF.END="QE0013" ID="QS0013"/>2.</NO.PARAG><ALINEA>If the information supplied in support of the application is inadequate, processing of the application may be suspended and the competent authorities shall inform the applicant of any further information they need.</ALINEA></PARAG><P>…</P><PARAG IDENTIFIER="018.004"><NO.PARAG>4.</NO.PARAG><ALINEA>Where an application is rejected or a residence permit issued in accordance with this Directive is withdrawn, the person concerned shall have the right to mount a legal challenge before the authorities of the Member State concerned.<QUOT.END REF.START="QS0013" CODE="2019" ID="QE0013"/></ALINEA></PARAG></QUOT.S></P></NP.ECR></GR.SEQ><?PAGE NO="5"?><GR.SEQ LEVEL="4"><TITLE><TI><P><HT TYPE="ITALIC">Regulation (EU) No 267/2012</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0011"><NO.P>11</NO.P><TXT>Article 23(2)(d) of Council Regulation (EU) No 267/2012 of <DATE ISO="20120323">23 March 2012</DATE> concerning restrictive measures against Iran and repealing Regulation (EU) No 961/2010 (<REF.DOC.OJ COLL="L" NO.OJ="088" PAGE.FIRST="1" DATE.PUB="2012">OJ 2012 L 88, p. 1</REF.DOC.OJ>), as amended by Council Regulation (EU) No 1263/2012 of <DATE ISO="20121221">21 December 2012</DATE> (<REF.DOC.OJ COLL="L" NO.OJ="356" PAGE.FIRST="34" DATE.PUB="2012">OJ 2012 L 356, p. 34</REF.DOC.OJ>), (<QUOT.START CODE="2018" REF.END="QE0014" ID="QS0014"/>Regulation No 267/2012<QUOT.END REF.START="QS0014" CODE="2019" ID="QE0014"/>) provides for the freezing of the funds and economic resources of the persons, entities and bodies listed in Annex IX to that regulation who have been identified as <QUOT.START CODE="2018" REF.END="QE0015" ID="QS0015"/>being other persons, entities or bodies that provide support, such as material, logistical or financial support, to the Government of Iran and entities owned or controlled by them, or persons and entities associated with them<QUOT.END REF.START="QS0015" CODE="2019" ID="QE0015"/>.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0012"><NO.P>12</NO.P><TXT>That annex has been the subject of various amendments, in particular following the adoption of additional restrictive measures. In the version as amended by Council Implementing Regulation (EU) No 1202/2014 of <DATE ISO="20141107">7 November 2014</DATE> (<REF.DOC.OJ COLL="L" NO.OJ="325" PAGE.FIRST="3" DATE.PUB="2014">OJ 2014 L 325, p. 3</REF.DOC.OJ>), it includes, in Part I B, concerning persons and entities involved in nuclear or ballistic missile activities and persons and entities providing support to the Government of Iran, Sharif University of Technology (Iran) (<QUOT.START CODE="2018" REF.END="QE0016" ID="QS0016"/>SUT<QUOT.END REF.START="QS0016" CODE="2019" ID="QE0016"/>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0013"><NO.P>13</NO.P><TXT>The reasons for including SUT in that list are as follows:</TXT><P><QUOT.S LEVEL="1"><P><QUOT.START CODE="2018" REF.END="QE0017" ID="QS0017"/>[SUT] has a number of cooperation agreements with Iranian Government organisations which are designated by the UN and/or the EU and which operate in military or military-related fields, particularly in the field of ballistic missile production and procurement. This includes: an agreement with the EU-designated Aerospace Industries Organisation for inter alia the production of satellites; cooperating with the Iranian Ministry of Defence and the Iranian Revolutionary Guards Corps (IRGC) on smart boat competitions; a broader agreement with the IRGC Air Force which covers developing and strengthening the University’s relations, organisational and strategic cooperation;</P><P>SUT is part of a six-university agreement which supports the Government of Iran through defence-related research; and SUT teaches graduate courses in unmanned aerial vehicle (UAV) engineering which were designed by the Ministry of Science among others. Taken together, these show a significant record of engagement with the Government of Iran in military or military-related fields that constitutes support to the Government of Iran.<QUOT.END REF.START="QS0017" CODE="2019" ID="QE0017"/></P></QUOT.S></P></NP.ECR></GR.SEQ></GR.SEQ><GR.SEQ LEVEL="3"><TITLE><TI><P><HT TYPE="BOLD"><HT TYPE="ITALIC">German law</HT></HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0014"><NO.P>14</NO.P><TXT>The Gesetz über den Aufenthalt, die Erwerbstätigkeit und die Integration von Ausländern im Bundesgebiet (Law on the residence, economic activity and integration of foreign nationals in the territory of the Federal Republic), in the version of <DATE ISO="20080225">25 February 2008</DATE> (BGBl. I, p. 162) (<QUOT.START CODE="2018" REF.END="QE0018" ID="QS0018"/>the AufenthG<QUOT.END REF.START="QS0018" CODE="2019" ID="QE0018"/>), provides in subparagraph 1 of Paragraph 4, <QUOT.START CODE="2018" REF.END="QE0019" ID="QS0019"/>Requirement for a residence permit<QUOT.END REF.START="QS0019" CODE="2019" ID="QE0019"/>:</TXT><P><QUOT.S LEVEL="1"><ALINEA><P><QUOT.START CODE="2018" REF.END="QE0020" ID="QS0020"/>Foreign nationals require a residence permit for entry and residence in the territory of the Federal Republic … Residence permits are granted as:</P><LIST TYPE="ARAB"><ITEM><NP><NO.P>1.</NO.P><TXT>a visa within the meaning of Paragraph 6(1), point 1, and (3);</TXT></NP></ITEM></LIST><P>…<QUOT.END REF.START="QS0020" CODE="2019" ID="QE0020"/></P></ALINEA></QUOT.S></P></NP.ECR><NP.ECR IDENTIFIER="NP0015"><NO.P>15</NO.P><TXT>Paragraph 6 of the AufenthG, <QUOT.START CODE="2018" REF.END="QE0021" ID="QS0021"/>Visa<QUOT.END REF.START="QS0021" CODE="2019" ID="QE0021"/>, provides in subparagraph 3:</TXT><P><QUOT.S LEVEL="1"><ALINEA><QUOT.START CODE="2018" REF.END="QE0022" ID="QS0022"/>For long-term stays a visa for the territory of the Federal Republic (national visa) is required, granted before entry. It shall be granted in accordance with the provisions applicable to the residence permit, the EU Blue Card, the settlement permit and the EU long-term residence permit …<QUOT.END REF.START="QS0022" CODE="2019" ID="QE0022"/></ALINEA></QUOT.S></P></NP.ECR><?PAGE NO="6"?><NP.ECR IDENTIFIER="NP0016"><NO.P>16</NO.P><TXT>Paragraph 16 of the AufenthG, <QUOT.START CODE="2018" REF.END="QE0023" ID="QS0023"/>Study, language courses, school attendance<QUOT.END REF.START="QS0023" CODE="2019" ID="QE0023"/>, provides in subparagraph 1:</TXT><P><QUOT.S LEVEL="1"><ALINEA><QUOT.START CODE="2018" REF.END="QE0024" ID="QS0024"/>A foreign national may be granted a residence permit for the purpose of study at a State or State-approved higher education establishment or comparable training establishment … The residence permit for the purpose of study may be granted only if the foreign national has been admitted by the educational establishment; conditional admission shall be sufficient. Proof of knowledge of the language of instruction is not required if language skills have already been taken into account for the admission decision or are to be acquired by preparatory measures for study. The period of validity of the residence permit for study, when first issued and when extended, shall be at least one year and must not exceed two years for study and preparatory measures for study; it may be extended if the purpose of residence has not yet been achieved and may yet be achieved within an appropriate period.<QUOT.END REF.START="QS0024" CODE="2019" ID="QE0024"/></ALINEA></QUOT.S></P></NP.ECR></GR.SEQ></GR.SEQ><GR.SEQ LEVEL="2"><TITLE><TI><P><HT TYPE="BOLD">The dispute in the main proceedings and the questions referred for a preliminary ruling</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0017"><NO.P>17</NO.P><TXT>Ms Fahimian, born in 1985, is an Iranian national. According to the order for reference, she holds a Master of Science degree in the field of information technology awarded by SUT. That university specialises in technology, engineering science and physics.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0018"><NO.P>18</NO.P><TXT>On <DATE ISO="20121121">21 November 2012</DATE> Ms Fahimian applied to the embassy of the Federal Republic of Germany in Teheran for a visa, in order to pursue doctoral studies at the Technische Universität Darmstadt (Darmstadt Technical University, Germany), Center for Advanced Security Research Darmstadt (CASED), within the framework of the <QUOT.START CODE="2018" REF.END="QE0025" ID="QS0025"/>Trusted Embedded and Mobile Systems<QUOT.END REF.START="QS0025" CODE="2019" ID="QE0025"/> project.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0019"><NO.P>19</NO.P><TXT>Ms Fahimian annexed to her application evidence of her admission to that university and a letter from the managing director of the Center for Advanced Security Research Darmstadt of <DATE ISO="20121114">14 November 2012</DATE>. The subjects of Ms Fahimian’s research project were described in that letter as ranging from <QUOT.START CODE="2018" REF.END="QE0026" ID="QS0026"/>security of mobile systems, esp. intrusion detection on smartphones to security protocols<QUOT.END REF.START="QS0026" CODE="2019" ID="QE0026"/>. The managing director also explained that Ms Fahimian’s task within that project would be to <QUOT.START CODE="2018" REF.END="QE0027" ID="QS0027"/>find new efficient and effective protections mechanisms for smartphones under the well-known restrictions of restricted power, restricted computing resources, and restricted bandwidth<QUOT.END REF.START="QS0027" CODE="2019" ID="QE0027"/>.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0020"><NO.P>20</NO.P><TXT>To finance her doctoral studies, Ms Fahimian obtained a doctoral grant from that research centre.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0021"><NO.P>21</NO.P><TXT>When her application for a visa was refused on <DATE ISO="20130527">27 May 2013</DATE>, Ms Fahimian made a request for reconsideration, which was likewise dismissed by decision of <DATE ISO="20131022">22 October 2013</DATE>.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0022"><NO.P>22</NO.P><TXT>On <DATE ISO="20131122">22 November 2013</DATE> she brought an action against that decision before the referring court, seeking the grant of the visa for which she had applied. That court observes that the parties disagree on whether grounds of public security within the meaning of Article 6(1)(d) of Directive 2004/114 preclude Ms Fahimian from entering German territory.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0023"><NO.P>23</NO.P><TXT>The order for reference states that the defendant in the main proceedings submits that the situation in Iran gives reason to fear that the knowledge Ms Fahimian would acquire during her stay for study purposes would later be misused in her country of origin. According to the defendant, the Iranian Government has for a long time been developing a large scale cyber-programme by which it hopes to gain access to confidential information in western countries. The defendant states that hackers are searching essentially for sensitive data from the air and aerospace sectors and the arms industry. According to security experts, hacking attacks are being undertaken in particular in order to obtain construction plans and research results for the Iranian nuclear programme, which is suspected of pursuing military objectives.</TXT></NP.ECR><?PAGE NO="7"?><NP.ECR IDENTIFIER="NP0024"><NO.P>24</NO.P><TXT>In this context, the significance of SUT’s involvement in the field of research for military purposes in Iran is said to be recognised in the international community. The defendant in the main proceedings observes in this respect that the nature of that involvement induced the EU legislature, by Council Implementing Regulation (EU) No 1264/2012 of <DATE ISO="20121221">21 December 2012</DATE> implementing Regulation (EU) No 267/2012 (<REF.DOC.OJ COLL="L" NO.OJ="356" PAGE.FIRST="55" DATE.PUB="2012">OJ 2012 L 356, p. 55</REF.DOC.OJ>), originally to add that university to the list of entities subject to restrictive measures in Annex IX to Regulation No 267/2012. That listing was annulled by the General Court of the European Union, by its judgment of <REF.DOC.ECR><DATE ISO="20140703">3 July 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Sharif University of Technology</HT> v <HT TYPE="ITALIC">Council</HT></NAME.CASE> (<NO.CASE>T‑181/13</NO.CASE>, not published, <NO.ECLI ECLI="ECLI:EU:T:2014:607">EU:T:2014:607</NO.ECLI></REF.DOC.ECR>). The EU legislature added that university to that list once again by Implementing Regulation No 1202/2014. The defendant in the main proceedings notes that the reason for putting SUT back on the list was the proven close connection between it and the Iranian regime in the military or related fields.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0025"><NO.P>25</NO.P><TXT>Moreover, according to the defendant in the main proceedings, it cannot be ruled out that even after graduating from SUT Ms Fahimian still maintains contacts with persons in that university.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0026"><NO.P>26</NO.P><TXT>In addition, the defendant in the main proceedings fears that the knowledge Ms Fahimian would acquire during her studies in Germany could also be used for purposes of internal repression in Iran, or in connection with human rights violations more generally. The technologies that are the subject of Ms Fahimian’s research project could be used by the Iranian authorities for surveillance of the population.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0027"><NO.P>27</NO.P><TXT>The referring court entertains doubts, however, as to whether Article 6(1)(d) of Directive 2004/114 can be relied on in the present case. No specific circumstance relating to Ms Fahimian’s conduct or her contacts with certain persons has been put forward by the defendant in the main proceedings, which has, moreover, not made clear the relationship between the skills which would be acquired by her during her doctoral studies and their subsequent misuse.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0028"><NO.P>28</NO.P><TXT>In those circumstances, the Verwaltungsgericht Berlin (Administrative Court, Berlin, Germany) decided to stay the proceedings and to refer the following questions to the Court for a preliminary ruling:</TXT><P><QUOT.S LEVEL="1"><LIST TYPE="OTHER"><ITEM><NP><NO.P><QUOT.START CODE="2018" REF.END="QE0028" ID="QS0028"/>1.</NO.P><TXT><LIST TYPE="alpha"><ITEM><NP><NO.P>(a)</NO.P><TXT>Is Article 6(1)(d) of Council Directive [2004/114] to be interpreted as meaning that the competent authorities of the Member States enjoy a margin of discretion in examining whether a third country national who applies to be admitted for the purposes set out in Articles 7 to 11 of that directive is regarded as a threat to public policy, public security or public health, as a result of which discretion the assessment by the authorities is subject to only limited judicial review?</TXT></NP></ITEM><ITEM><NP><NO.P>(b)</NO.P><TXT>If Question 1(a) is answered in the affirmative:</TXT><P>What are the legal limits placed on the competent authorities of the Member States when making the assessment that a third country national who applies to be admitted for the purposes set out in Articles 7 to 11 of Council Directive [2004/114] is to be regarded as a threat to public policy, public security or public health, with respect particularly to the facts to be used as a basis for that assessment and their evaluation?</P></NP></ITEM></LIST></TXT></NP></ITEM><ITEM><NP><NO.P>2.</NO.P><TXT>Independently of the answer to Questions 1(a) and 1(b):</TXT><P>Is Article 6(1)(d) of Council Directive [2004/114] to be interpreted as meaning that the Member States are thereby empowered, in a case such as the present, in which a third country national from [the Islamic Republic of] Iran, who obtained her university degree from [SUT] (Teheran) in Iran, which specialises in technology, engineering science and physics, seeks entry for the purpose of taking up doctoral studies in the area of IT security research within the framework of the <QUOT.START CODE="201C" REF.END="QE0029" ID="QS0029"/>Trusted Embedded and Mobile Systems<QUOT.END REF.START="QS0029" CODE="201D" ID="QE0029"/> project, in particular the development of effective security mechanisms for smartphones, to deny entry to their territory, stating as grounds for this refusal that it cannot be ruled<?PAGE NO="8"?> out that the skills acquired in connection with the research project would be misused in Iran, for instance for the acquisition of sensitive information in western countries, for the purpose of internal repression, or more generally in connection with human rights violations?<QUOT.END REF.START="QS0028" CODE="2019" ID="QE0028"/></P></NP></ITEM></LIST></QUOT.S></P></NP.ECR></GR.SEQ><GR.SEQ LEVEL="2"><TITLE><TI><P><HT TYPE="BOLD">Consideration of the questions referred</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0029"><NO.P>29</NO.P><TXT>By its questions, which should be considered together, the referring court asks essentially whether Article 6(1)(d) of Directive 2004/114 must be interpreted as meaning that the competent national authorities, when dealing with an application by a third country national for a visa for the purpose of study, enjoy a wide discretion which is subject only to limited judicial review in determining whether that national represents a threat to public security within the meaning of that provision, and whether those authorities are entitled to refuse to grant the visa applied for in circumstances such as those of the main proceedings.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0030"><NO.P>30</NO.P><TXT>According to settled case-law, in interpreting a provision of EU law, it is necessary to consider not only its wording but also the context in which it occurs and the objectives pursued by the rules of which it forms part (see, inter alia, judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0022">22</REF.NP.ECR></REF.DOC.ECR> and the case-law cited).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0031"><NO.P>31</NO.P><TXT>In the first place, as regards the general scheme of Directive 2004/114, Article 5 provides that the admission of a third country national to the territory of a Member State pursuant to the directive is to be subject to the verification of documentary evidence showing that the applicant meets both the general conditions laid down in Article 6 of the directive and also, where the third country national is seeking admission for study purposes, the specific conditions laid down in Article 7 of the directive (see, to that effect, judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0023">23</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0032"><NO.P>32</NO.P><TXT>In particular, the Member States are to verify whether, under Article 6(1)(d) of Directive 2004/114, read in the light of recital 14 of the directive, there are grounds relating to the existence of a threat to public policy, public security or public health which may justify a refusal to admit a third country national (judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0024">24</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0033"><NO.P>33</NO.P><TXT>Pursuant to Article 12 of Directive 2004/114, students from third countries must be issued with a residence permit where they meet the general and specific conditions exhaustively listed in Articles 6 and 7 of the directive (see, to that effect, judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0027">27</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0034"><NO.P>34</NO.P><TXT>In the second place, as regards the objectives of Directive 2004/114, it can be seen from Article 1(a) read in conjunction with recital 24 of the directive that its purpose is to determine the conditions for the admission of third country nationals to the territory of Member States for study purposes, for a period exceeding three months (see, inter alia, judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0028">28</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0035"><NO.P>35</NO.P><TXT>The Court has held that, according to recitals 6 and 7 of Directive 2004/114, the directive is intended to promote the mobility of students who are third country nationals to the European Union for the purpose of education, that mobility being intended to promote Europe as a world centre of excellence for studies and vocational training (judgment of <REF.DOC.ECR><DATE ISO="20120621">21 June 2012</DATE>, <NAME.CASE><HT TYPE="ITALIC">Sommer</HT></NAME.CASE>, <NO.CASE>C‑15/11</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2012:371">EU:C:2012:371</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0039">39</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0036"><NO.P>36</NO.P><TXT>A Member State may not therefore, in relation to the admission of third country nationals for study purposes, introduce conditions additional to those laid down in Articles 6 and 7 of Directive 2004/114, as that would run counter to the objectives pursued by the directive (see, inter alia, judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0030">30</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><?PAGE NO="9"?><NP.ECR IDENTIFIER="NP0037"><NO.P>37</NO.P><TXT>On the other hand, Directive 2004/114 allows the competent national authorities a margin of discretion in assessing whether the general and specific conditions laid down in Articles 6 and 7 of the directive are met, in particular whether grounds relating to the existence of a threat to public security preclude the admission of the third country national concerned (see, to that effect, judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0033">33</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0038"><NO.P>38</NO.P><TXT>It should be noted here that Directive 2004/114 does not define the concept of <QUOT.START CODE="2018" REF.END="QE0030" ID="QS0030"/>public security<QUOT.END REF.START="QS0030" CODE="2019" ID="QE0030"/> within the meaning of Article 6(1)(d) of the directive, which was the basis for the refusal of the visa at issue in the main proceedings.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0039"><NO.P>39</NO.P><TXT>The Court has, however, explained that the concept of <QUOT.START CODE="2018" REF.END="QE0031" ID="QS0031"/>public security<QUOT.END REF.START="QS0031" CODE="2019" ID="QE0031"/> covers both the internal security of a Member State and its external security. Public security may thus be affected by a threat to the functioning of institutions and essential public services and the survival of the population, as well as by the risk of a serious disturbance to foreign relations or the peaceful coexistence of nations, or a risk to military interests (see, inter alia, judgments of <REF.DOC.ECR><DATE ISO="20101123">23 November 2010</DATE>, <NAME.CASE><HT TYPE="ITALIC">Tsakouridis</HT></NAME.CASE>, <NO.CASE>C‑145/09</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2010:708">EU:C:2010:708</NO.ECLI>, paragraphs <REF.NP.ECR REF="NP0043">43</REF.NP.ECR> and <REF.NP.ECR REF="NP0044">44</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20160215">15 February 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">N</HT></NAME.CASE>, <NO.CASE>C‑601/15 PPU</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:84">EU:C:2016:84</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0066">66</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0040"><NO.P>40</NO.P><TXT>As regards the condition of the existence of a threat to public security, it must be observed that, in contrast inter alia to Article 27(2) of Directive 2004/38/EC of the European Parliament and of the Council of <DATE ISO="20040429">29 April 2004</DATE> on the right of citizens of the Union and their family members to move and reside freely within the territory of the Member States amending Regulation (EEC) No 1612/68 and repealing Directives 64/221/EEC, 68/360/EEC, 72/194/EEC, 73/148/EEC, 75/34/EEC, 75/35/EEC, 90/364/EEC, 90/365/EEC and 93/96/EEC (<REF.DOC.OJ COLL="L" NO.OJ="158" PAGE.FIRST="7" DATE.PUB="2004">OJ 2004 L 158, p. 7</REF.DOC.OJ>, and corrigenda <REF.DOC.OJ COLL="L" NO.OJ="229" PAGE.FIRST="35" DATE.PUB="2004">OJ 2004 L 229, p. 35</REF.DOC.OJ>, and <REF.DOC.OJ COLL="L" NO.OJ="197" PAGE.FIRST="34" DATE.PUB="2005">OJ 2005 L 197, p. 34</REF.DOC.OJ>), which requires that a measure taken in the name of public security must be based exclusively on the personal conduct of the individual concerned and that that conduct must represent a <QUOT.START CODE="2018" REF.END="QE0032" ID="QS0032"/>genuine, present and sufficiently serious threat<QUOT.END REF.START="QS0032" CODE="2019" ID="QE0032"/> to that fundamental interest of society (see, inter alia, judgments of <REF.DOC.ECR><DATE ISO="20120522">22 May 2012</DATE>, <NAME.CASE><HT TYPE="ITALIC">I</HT></NAME.CASE>, <NO.CASE>C‑348/09</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2012:300">EU:C:2012:300</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0030">30</REF.NP.ECR></REF.DOC.ECR>; of <REF.DOC.ECR><DATE ISO="20160913">13 September 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">Rendón Marin</HT></NAME.CASE>, <NO.CASE>C‑165/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:675">EU:C:2016:675</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0084">84</REF.NP.ECR></REF.DOC.ECR>; and of <REF.DOC.ECR><DATE ISO="20160913">13 September 2016</DATE>, <NAME.CASE><HT TYPE="ITALIC">CS</HT></NAME.CASE>, <NO.CASE>C‑304/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2016:674">EU:C:2016:674</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0040">40</REF.NP.ECR></REF.DOC.ECR>), it is apparent from Article 6(1)(d) of Directive 2004/114, read in the light of recital 14 of that directive, that the admission of a third country national may be refused if the national authorities competent to process that national’s application for a visa consider, on the basis of an assessment of the facts, that he is a threat, if only <QUOT.START CODE="2018" REF.END="QE0033" ID="QS0033"/>potential<QUOT.END REF.START="QS0033" CODE="2019" ID="QE0033"/>, to public security. That assessment may thus take into account not only the personal conduct of the applicant but also other elements relating, in particular, to his professional career.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0041"><NO.P>41</NO.P><TXT>The assessment of the individual situation of an applicant for a visa may involve complex evaluations based inter alia on the personality of that applicant, his integration in the country where he resides, the political, social and economic situation of that country, and the potential threat to public security represented by the admission of that applicant for study purposes to the territory of the Member State concerned, in view of the risk that the knowledge acquired by that applicant during his studies might subsequently be used in his country of origin for purposes prejudicial to that public security. Such evaluations involve predicting the foreseeable conduct of the applicant for the visa, and must be based inter alia on an extensive knowledge of his country of residence and on the analysis of various documents and of the applicant’s statements (see, to that effect, judgment of <REF.DOC.ECR><DATE ISO="20131219">19 December 2013</DATE>, <NAME.CASE><HT TYPE="ITALIC">Koushkaki</HT></NAME.CASE>, <NO.CASE>C‑84/12</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2013:862">EU:C:2013:862</NO.ECLI>, paragraphs <REF.NP.ECR REF="NP0056">56</REF.NP.ECR> and <REF.NP.ECR REF="NP0057">57</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0042"><NO.P>42</NO.P><TXT>In those circumstances, the competent national authorities enjoy a wide discretion when assessing the relevant facts in order to determine whether the grounds set out in Article 6(1)(d) of Directive 2004/114, relating to the existence of a threat inter alia to public security, preclude the admission of the third country national (see, by analogy, judgment of <REF.DOC.ECR><DATE ISO="20131219">19 December 2013</DATE>, <NAME.CASE><HT TYPE="ITALIC">Koushkaki</HT></NAME.CASE>, <NO.CASE>C‑84/12</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2013:862">EU:C:2013:862</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0060">60</REF.NP.ECR></REF.DOC.ECR>).</TXT></NP.ECR><?PAGE NO="10"?><NP.ECR IDENTIFIER="NP0043"><NO.P>43</NO.P><TXT>It is for those national authorities, in order to determine whether an applicant for a visa represents a threat, if only potential, to public security, to perform an overall assessment of all the elements of that person’s situation.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0044"><NO.P>44</NO.P><TXT>As the Court has held, in the examination of the conditions of admission there is nothing to prevent the competent national authorities, in accordance with recital 15 of Directive 2004/114, from requiring all the evidence necessary to assess the coherence of the application for admission (judgment of <REF.DOC.ECR><DATE ISO="20140910">10 September 2014</DATE>, <NAME.CASE><HT TYPE="ITALIC">Ben Alaya</HT></NAME.CASE>, <NO.CASE>C‑491/13</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2014:2187">EU:C:2014:2187</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0034">34</REF.NP.ECR></REF.DOC.ECR>). If the information provided in support of the visa application is inadequate for assessing whether there is a threat to public security, Article 18(2) of the directive states that the authorities may require the applicant to provide the further information that they need.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0045"><NO.P>45</NO.P><TXT>As regards judicial review of the discretion enjoyed by the competent national authorities in connection with Article 6(1)(d) of Directive 2004/114, the national court must, while taking account of the distribution of the burden of proof as described in the previous paragraph, ascertain in particular whether the contested decision is based on a sufficiently solid factual basis.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0046"><NO.P>46</NO.P><TXT>Moreover, since the competent national authorities have a wide discretion in assessing the facts, judicial review is limited, as far as that assessment is concerned, to the absence of manifest error. Judicial review must also relate to compliance with procedural guarantees, which is of fundamental importance. Those guarantees include the obligation for those authorities to examine carefully and impartially all the relevant elements of the situation in question (see, to that effect, judgments of <REF.DOC.ECR><DATE ISO="20100309">9 March 2010</DATE>, <NAME.CASE><HT TYPE="ITALIC">ERG and Others</HT></NAME.CASE>, <NO.CASE>C‑379/08 and C‑380/08</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2010:127">EU:C:2010:127</NO.ECLI>, paragraphs <REF.NP.ECR REF="NP0060">60</REF.NP.ECR> and <REF.NP.ECR REF="NP0061">61</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20150616">16 June 2015</DATE>, <NAME.CASE><HT TYPE="ITALIC">Gauweiler and Others</HT></NAME.CASE>, <NO.CASE>C‑62/14</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2015:400">EU:C:2015:400</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0069">69</REF.NP.ECR></REF.DOC.ECR>), and also the obligation to give a statement of the reasons for their decision that is sufficient to enable the national court to ascertain, in connection with the right of challenge provided for in Article 18(4) of Directive 2004/114, whether the factual and legal elements on which the exercise of the power of assessment depends were present (see, by analogy, judgments of <REF.DOC.ECR><DATE ISO="19911121">21 November 1991</DATE>, <NAME.CASE><HT TYPE="ITALIC">Technische Universität München</HT></NAME.CASE>, <NO.CASE>C‑269/90</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:1991:438">EU:C:1991:438</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0014">14</REF.NP.ECR></REF.DOC.ECR>, and of <REF.DOC.ECR><DATE ISO="20080710">10 July 2008</DATE>, <NAME.CASE><HT TYPE="ITALIC">Bertelsmann and Sony Corporation of America</HT> v <HT TYPE="ITALIC">Impala</HT></NAME.CASE>, <NO.CASE>C‑413/06 P</NO.CASE>, <NO.ECLI ECLI="ECLI:EU:C:2008:392">EU:C:2008:392</NO.ECLI>, paragraph <REF.NP.ECR REF="NP0069">69</REF.NP.ECR></REF.DOC.ECR>). On the latter point, it must be noted that, according to recital 14 of Directive 2004/114, a refusal of admission of a third country national for study purposes must be based on <QUOT.START CODE="2018" REF.END="QE0034" ID="QS0034"/>duly justified grounds<QUOT.END REF.START="QS0034" CODE="2019" ID="QE0034"/>.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0047"><NO.P>47</NO.P><TXT>In the present case, concerning the action brought by Ms Fahimian against the German authorities’ decision to refuse to grant her the visa for study purposes for which she had applied, it is for the referring court to take account of all the elements of her situation.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0048"><NO.P>48</NO.P><TXT>Among those elements, those of particular importance with respect to Article 6(1)(d) of Directive 2004/114 are the fact that Ms Fahimian obtained her degree from SUT, which was and still is on the list of entities subject to restrictive measures in Annex IX to Regulation No 267/2012, and the fact that the research she intends to conduct in Germany for her doctorate relates to the sensitive field of information technology security.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0049"><NO.P>49</NO.P><TXT>The same applies to additional elements available to the competent national authorities which give reason to fear that the knowledge Ms Fahimian will acquire in Germany may subsequently be misused for purposes, such as those suggested by the referring court in its second question, contrary to the maintenance of public security.</TXT></NP.ECR><NP.ECR IDENTIFIER="NP0050"><NO.P>50</NO.P><TXT>Having regard to all the above considerations, the answer to the questions referred is that Article 6(1)(d) of Directive 2004/114 must be interpreted as meaning that the competent national authorities, where a third country national has applied to them for a visa for study purposes, have a wide discretion in ascertaining, in the light of all the relevant elements of the situation of that national, whether he represents a threat, if only potential, to public security. That provision must also be interpreted as not precluding the competent national authorities from refusing to admit to the<?PAGE NO="11"?> territory of the Member State concerned, for study purposes, a third country national who holds a degree from a university which is the subject of EU restrictive measures because of its large scale involvement with the Iranian Government in military or related fields, and who plans to carry out research in that Member State in a field that is sensitive for public security, if the elements available to those authorities give reason to fear that the knowledge acquired by that person during his research may subsequently be used for purposes contrary to public security. It is for the national court hearing an action brought against the decision of the competent national authorities to refuse to grant the visa sought to ascertain whether that decision is based on sufficient grounds and a sufficiently solid factual basis.</TXT></NP.ECR></GR.SEQ><GR.SEQ LEVEL="2"><TITLE><TI><P><HT TYPE="BOLD">Costs</HT></P></TI></TITLE><NP.ECR IDENTIFIER="NP0051"><NO.P>51</NO.P><TXT>Since these proceedings are, for the parties to the main proceedings, a step in the action pending before the national court, the decision on costs is a matter for that court. Costs incurred in submitting observations to the Court, other than the costs of those parties, are not recoverable.</TXT></NP.ECR></GR.SEQ></GR.SEQ><JURISDICTION><INTRO>On those grounds, the Court (Grand Chamber) hereby rules:</INTRO><P><HT TYPE="BOLD">Article 6(1)(d) of Council Directive 2004/114/EC of <DATE ISO="20041213">13 December 2004</DATE> on the conditions of admission of third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service must be interpreted as meaning that the competent national authorities, where a third country national has applied to them for a visa for study purposes, have a wide discretion in ascertaining, in the light of all the relevant elements of the situation of that national, whether he represents a threat, if only potential, to public security. That provision must also be interpreted as not precluding the competent national authorities from refusing to admit to the territory of the Member State concerned, for study purposes, a third country national who holds a degree from a university which is the subject of EU restrictive measures because of its large scale involvement with the Iranian Government in military or related fields, and who plans to carry out research in that Member State in a field that is sensitive for public security, if the elements available to those authorities give reason to fear that the knowledge acquired by that person during his research may subsequently be used for purposes contrary to public security. It is for the national court hearing an action brought against the decision of the competent national authorities to refuse to grant the visa sought to ascertain whether that decision is based on sufficient grounds and a sufficiently solid factual basis.</HT></P></JURISDICTION></CONTENTS.JUDGMENT><SIGNATURE.CASE><SIGNATORY><P>[Signatures]</P></SIGNATORY></SIGNATURE.CASE></JUDGMENT>