The present invention relates to substituted pyrrolyl-pyrimidines which modulate the activity of protein kinases and are therefore useful in treating diseases caused by dysregulated protein kinase activity, in particular MPS1. The present invention also provides methods for preparing these compounds, pharmaceutical compositions comprising these compounds, and methods of treating diseases utilizing such these compounds or the pharmaceutical compositions containing them.