The primary application of nitrogen in the pharmaceutical industry is coverage and inerting to prevent oxidation.
For a more detailed discussion of nitrogen and oxygen use, see our article Nitrogen and Oxygen Generators in the Pharmaceutical Industry.