The purpose of this paper is to prove the main conjecture of noncommutative Iwasawa theory for p-adic Lie extensions for totally real fields, for an odd prime p, assuming Iwasawa's conjecture on vanishing of the cyclotomic µ-invariant for certain CM extension of the base field.