A convenient synthesis of 2-mercapto-oxazoles via the reaction of beta-ketoazide with triphenylphosphine (TPP) and carbon disulfide and its application to the synthesis of a key intermediate of phosphoinositide 3-kinase gamma (PI3K gamma) inhibitors are described.