Mechanism of action of vancomycin is: