In a school compound on the outskirts of the town of Nowshera, more than 1,000 people are getting used to a new life.
Living in tents under a sweltering sun, these are the frontline victims of the war on terror.
"It's so hot here," said one young man. "We come from the mountains and we're not used to it."
They have fled from a huge Pakistani military operation against Islamist militants in the Bajaur tribal area near the border with Afghanistan.