A finite group with a nilpotent pi-Hall subgroup and pi-decomposable cofactors of maximal subgroups is studied. It is established that the quotient of this group by the Fitting subgroup is pi-decomposable, which implies that a finite group with nilpotent cofactors of maximal subgroups is metanilpotent.