The present invention relates to a pharmaceutical composition of NSAID and PPI or salts thereof. In particular, the invention relates to a composition of NSAID and PPI or salts thereof comprising a core and two or more layers coated on the core. The invention also includes a method of treating upper gastrointestinal injury associated with NSAID and for the secondary prevention of cardiovascular disease in patients at risk for NSAID -associated gastric ulcers.