How can probiotics improve gut health and when should they be taken?

How can probiotics improve gut health and when should they be taken?