The disclosure provides compound of formula I, or its pharmaceutically acceptable salt, for modulating the activity of phosphoinositide 3-kinases-gamma (PI3K γ), it can be used for treating the activity with PI3K γ, including, for example, autoimmune disease, cancer, cardiovascular disease and neurodegenerative disease.