The present invention describes heterocyclic compounds of general Formula 1 and their method of preparation thereof. The present invention describes general Formula 1 which inhibits phosphoinositide 3-kinase (PI3K) and can be used as the anticancer agents.