Artificial intelligence - due to the transversal nature of its possible application and its potential aptitude to increase and improve productivity, while reducing costs - appears today as one of the most promising technologies of our times; one of the enabling factors of what is considered as a new industrial revolution, the Industry 4.0. Recent developments in AI and related solutions, such as machine learning, have radically changed not only the IT environment, but also everyday life. Just think of the drones that make deliveries or of the self-driven cars. There are also areas, such as retail, in which AI already has multiple concrete but imperceptible applications that have substantial repercussions on our customer experience, both online and in stores, while improving margins and overall efficiency of the supply and demand. This revolution inevitably also brings with it reflections on the regulatory and social fields, creating new legal gaps to be filled and challenges that, only a few decades ago, seemed to belong to a distant future. In the face of the countless benefits expected from the development of AI, it is undeniable that the use of forms of robotics and intelligent systems also brings with it a series of risks that are essential to foreseing and monitoring. Just to name a few: - an illegitimate compression of the privacy sphere of individuals, due to the pervasiveness of technologies; - the risk that intelligent systems, which result from the programming by human beings, inherit the cognitive biases of the humans and therefore make choices that may be discriminatory; - the possibility that the availability of Big Data in the hands of a few companies may favor the creation of new monopolies or be a source of distortions of competition on the market; - or the risk that an extreme profiling of the choices of individuals may select and filter the contents and information to be proposed to each of them up to compromising their freedom of choice and the ability to self-determine. Added to this is the need to regulate specific issues related to the use of AI - such as, for example, the allocation of liability for conduct of intelligent machines that are not always predictable or controllable by humans, or the applicability of intellectual property legislation to the world of AI – both issues that are not easily solved in the light of the existing categories and legal principles and that now require the adoption of specific legislation on the subject. To date, in fact, there is no specific legislation addressed to regulate the use of artificial intelligence systems, nor the consequences deriving, on a civil and criminal level, respectively from harmful events or offenses dependent on or connected to their use. The legal effects and legal problems related to the design, production and use of these new technologies are therefore to be included in the context of current legislation and to be resolved on the basis of the existing legal categories and principles. Similarly, for the protection of intellectual and industrial property related to the design and creation of intelligent systems and the outputs deriving from their use, reference will be made to the legislation on copyright and the industrial property code. Finally, to settle the issues relating the complex matter of the processing of personal data and the protection of rights and freedoms of the data subjects, the reference regulatory framework is now constituted by the new European Regulation no. 679/2016 (so called GDPR), which, while never making explicit and specific reference to new technologies, moves precisely from the premise of adapting the subject of the processing and protection of personal data to the current technological context, also and above all for the risks associated with innovation and to the pervasiveness of the most advanced instruments regarding the intimacy and personal sphere of individuals. Precisely in order to create a common and uniform framework within the European Union, on April 21, 2021 the European Commission presented the draft of the future European Regulation on Artificial Intelligence, which will be the first regulatory act adopted in Europe in this field, with the aim of mitigating and managing the risk associated with the use of intelligent systems, without hindering their development and diffusion. In this course, we will try to give an overview of the main legal issues related to the production and use of artificial intelligence technologies, trying to give a framework and answers in the light of current legislation and the proposed Regulation requested by the European Parliament and issued by the Commission. In particular, in week 2 we will address the issue of civil and criminal liability deriving from the conduct carried out in full autonomy by intelligent systems. If artificial intelligence makes a wrong decision and causes damage, who compensates for this damage? If it commits a crime, who should be held responsible? These are some of the questions we will try to answer... In week 3 we will address the issue of the protection of artificial intelligence in the light of the legislation on intellectual property. We will see why it is important to protect the intellectual property of a company, what are the rights that the law attributes to the author of an intellectual work of a creative nature (as the software that underlies intelligent systems must be considered) and if and under what conditions a technology based on artificial intelligence can be patented. Finally, we will try to understand who owns the intellectual property rights of works created independently by AI, such as works of art, musical pieces, poems, pieces of journalism, literary works and so on. Finally, we will address the issue of the risks to fundamental rights and freedoms that could derive from the use of AI. We will talk about algocracy, algorithmic bias and the risk of discrimination. We will also try to understand what the GDPR provides with respect to the use of intelligent technologies based on automated profiling and what are all the formalities, step by step, required by the legislation to produce and implement intelligent technologies that comply with the regulations.