Alienated from the most populous part of the country, from the cities, and from a younger generation of Libyans, Idris spent more and more time at his palace in Tobruk, near the British military base.