To maintain emotional composure and function normally despite being under extreme stress or pressure.
"She somehow held it together through the funeral and only broke down when she got home."
I tried to hold it together, but grief has its own timetable.
— Widely attested sentiment; similar phrasing appears in Joan Didion, The Year of Magical Thinking (2005)