Since the past, innovations have dramatically changed people's quality of life and played an important role in all aspects of humans' lives. The internet, social media, and e-books are well-known examples of current worldwide innovative breakthroughs. Despite innovations' advantages, they can lead to some negative consequences or harmful effects such as online fraud, copyright infringements and privacy violations which need to be regulated by law. In fact, the law seeks to regulate innovations in a way that protects users' rights while reducing risks. Every country have passed numerous lawsto regulate the online sphere and the European Union is a legislative body which has created various laws on different topics in its European member states. “The European Union” was established after the Second World War in the European region according to “the treaty of Maastricht”. Human dignity, freedom, equality, human rights, and the rule of law are the values of the European Union (The EU). Generally, the EU has four main institutions with important responsibilities. “The European commission” offers new laws and “The Parliament” and “The European Council” enact them in forms of directives and regulations. Additionally, the Commission monitors member states to ensure that rules are implemented correctly. The Court of Justice of the European Union (CJEU) interprets EU laws to ensure that they are applied uniformly in all EU countries, and resolves legal disputes between national governments and EU institutions. Therefore, EU has been active in making laws and implementing them. Therefore, since the emergence of new technologies, in particular the Internet, the EU has been constantly trying to solve the internet legal problems. In 2017, the Commission stated that digitization provides many benefits in terms of innovation, employment, growth and cultural diversity. Taking advantage of these opportunities requires a collective response to some of the challenges caused by digital transformation and a review of policies affected by digitalization. The EU has enacted many laws such as General Data Protection Regulation (GDPR) for protecting natural person’s data, the Digital Markets Act (DMA) with the aim of reaching potential economic growth in a coherent manner and the Digital Services Act (DSA) for safe and secure activities in the digital space. Now, the complicated innovation “Artificial Intelligence” (AI) has brought new legal problems. AI is not a new innovation. Actually, AI has been rooted in the previous century, when Alan Turing, a British mathematician, made The Bomb to encode the Enigma code which was used by the German army in the Second World War. After its successful function, working on AI has continued to grow with all of its ups and downs. Now, AI tries to simulate the function of human’s brain and on the ground of using new technologies, improved scientific methods and developed computer science, AI has improved and become generative. Generally, Generative AI works based on a complicated process which consists of deep learning, machine learning, natural language processing (NLP) and artificial neurons. These parts work completely related together to analyze and organize input data to answer users’ requests clearly and exactly. So, this function is like the human's brain function and has its difficulties, ambiguity and complexity. Also, artificial intelligence functions are broad and complex. This is used for a variety of purposes, from recipe suggestions to complex math problems and if it has mistaken, it can learn from them to correct its mistakes and improve its abilities. This technology helps human beings a lot in various majors such as medical diagnosis, automatic translations and natural disaster predictions. However, due to its game-changing nature, it poses new challenges for law enforcement and policymakers. Specifically, the European Union has tried to regulate Artificial intelligence with current laws and new policies. In 2018, In addition to emphasizing the guarantee of data protection and ethical standards, with the aim of preventing the risks of artificial intelligence and using its benefits, artificial intelligence was aligned with the legislative priorities of the European Union. In 2020, European Union published a report on "the European approach to excellence and trust" in artificial intelligence, which emphasized the existence of clear rules and a safe environment to build people's trust in artificial intelligence, with supporting the artificial intelligence growth and development. In order to synchronize laws related to artificial intelligence, a single and comprehensive law on artificial intelligence was reviewed by the European Commission, the Council of the European Union and the European Parliament. The draft was proposed by the European Commission in 2021 and approved by the European legislators in 2023. Despite the definitions and purposes in this draft, the risks of using AI systems are introduced and regulated. The use of AI systems to create or expand facial recognition databases, recognize people's emotions in workplaces and educational institutions, and using “biometric classification systems' are all examples of the inhibited risks of AI which are fortunately prohibited unless the law specifically allows for these risks. Additionally, there are high AI risks associated with AI systems in products. These products are protected by General Product Safety Directive (GPSD) 2001/95/EC and the new AI regulations. In addition, intelligence systems used in administrative, employment, immigration, asylum, and border management must be recorded in the EU data repositories. However, all challenges are not limited to risks. About copyright, directives and regulations have been in force since 1991 and now Directive 2019/790 contains provisions on the protection of copyright in the digital field. Therefore, when generative AI uses a lot of data for text and data mining (TDM) or other purposes, this data collection input must be used with their authors’ authorization. Additionally, after the content is produced, it must be shown that the content was created by artificial intelligence so that users can know whether the creator is human or not. In conclusion, this article endeavors to explain the history of the European Union and its groundbreaking legislative measures in different subjects, specifically in artificial intelligence. Some provisions of the draft of the AI Act are analyzed which are new in the world and they can affect other countries’ legislations in the AI field. [ABSTRACT FROM AUTHOR]