What is a SWOT analysis? At what point in the strategy formulation process should it be conducted?

What is a SWOT analysis? At what point in the strategy formulation process should it be conducted?