Count Herbert II of Maine died in 1062, and William, who had betrothed his eldest son Robert to Herbert's sister Margaret, claimed the county through his son. Local nobles resisted the claim, but William invaded and by 1064 had secured control of the area. William appointed a Norman to the bishopric of Le Mans in 1065. He also allowed his son Robert Curthose to do homage to the new Count of Anjou, Geoffrey the Bearded. William's western border was thus secured, but his border with Brittany remained insecure. In 1064 William invaded Brittany in a campaign that remains obscure in its details. Its effect, though, was to destabilise Brittany, forcing the duke, Conan II, to focus on internal problems rather than on expansion. Conan's death in 1066 further secured William's borders in Normandy. William also benefited from his campaign in Brittany by securing the support of some Breton nobles who went on to support the invasion of England in 1066.