It's best to freeze a sourdough loaf the same day you baked it to maintain its freshness, make sure the bread has completely cooled before slicing it, place it in a ziplock bag straight into the freezer.