The army will remain in Swat until the goal of lasting peace is achieved in the valley, in line with the peace deal made with Sufi Muhammad, Information Minister Sherry Rehman said on Monday.