 The initial pact was augmented by pacts with the cities of Lucerne, Zürich, and Berne.This union of rural and urban communes, which enjoyed the status of imperial immediacy within the Holy Roman Empire, was engendered by pressure from Habsburg dukes and kings who had ruled much of the land.In several battles with Habsburg armies, the Swiss were victorious; they conquered the rural areas of Glarus and Zug, which became members of the confederacy.