Pretreating with metals or metal-containing compounds