The phrase
"to circle the wagons" means to come together and protect oneself, like how settlers in the old American West would form a circle with their wagons for safety. It involves gathering and defending against any potential threat or danger.
Full definition