What help bacteria survive harsh conditions?

They have a thick cell wall that helps them survive.