Artificial intelligence (AI) has become an indispensable part of our lives, without which we can no longer imagine performing everyday tasks. Like the steam engine or electricity in the past, AI is changing our world, our society and our industry. Increasing computing power, the availability of data and advances in algorithms has made AI one of the most strategically important technologies of the 21st century. Currently, AI is making its strongest inroads into the automotive and transportation industries, weapons and the military, certain areas of health and medicine, the financial sector and internet usage. In the article, the authors present some aspects of artificial intelligence, highlighting its application in international and national criminal law. The EU has already established standards for data protection in law enforcement, which form the basis for the use of artificial intelligence in law enforcement and justice. The existing legal standards in Croatia are largely declarative and preventive in nature and are not sufficient. In our opinion, the existing legal gaps should be closed in the future by introducing new legal norms in all areas of law, especially in criminal law, but first it is necessary to address the preparation and adoption of a national strategy and action plan for artificial intelligence, following the example of some EU Member States. Finally, the development of artificial intelligence should ensure a balanced approach that takes into account, on the one hand, advanced technologies and their accelerated development and, on the other hand, the need to develop certain legal, ethical and sociological standards that ensure legal certainty.