To be in the same difficult situation or facing the same problems as someone else.
This nautical metaphor dates back to the 16th century and draws from the reality that everyone aboard a ship shares the same fate - if the boat sinks, everyone goes down together. The phrase emphasizes shared circumstances and mutual dependence.
Try Another Word