The present invention relates to 6 amino 7 bicyclo 7 deaza purine derivatives which modulate the activity of protein kinases and are therefore useful in treating diseases caused by dysregulated protein kinase activity in particular RET family kinases. The present invention also provides methods for preparing these compounds pharmaceutical compositions comprising these compounds and methods of treating diseases utilizing pharmaceutical compositions containing these compounds.