After the death of his mother, it took him a while to pull himself together. Here 'pull himself together' means?

After the death of his mother, it took him a while to pull himself together. Here 'pull himself together' means?

Explanation

"Pull himself together" means to regain emotional control after a stressful or difficult situation.

In this context, it refers to recovering from the grief of his mother's death.