When these bacteria come in contact with sugar or starch in the mouth, they produce acid that attacks the teeth for 20 minutes or more.