The compliance was 36.1% in intensive care units, 21.6% in internal medicine units and 28.4% in surgical units. Conclusions: Compliance with handwashing was low at two moments: before patient contact and after environment contact.