Data mining can be used as a tool to model criminal behaviour, detect it, and prevent it. This paper is a literature review of recent related work done in the field of using data mining and machine learning techniques such as clustering and neural networks to prevent or predict crimes. Crimes with different levels of severity are considered: city crime, terrorist attack, cybercrime, and fraud. © 2019 Institution of Engineering and Technology. All rights reserved.