When do you conduct card sorting

This is my first question here.I'm new in UX.Just in self learning process. I would like to know when do you conduct card sorting?Before structuring IA or after that to evaluate IA?How to you analyse Card sorting findings? Thank you