A compound represented by formula (I) having mTOR inhibitory activity or a pharmacologically acceptable salt thereof.