Casimir III of Poland and Louis I of Hungary entered a conspiracy against Charles and managed to persuade Otto V of Bavaria to join. After the repeal of the estate contract by margrave Otto, in early July 1371, Charles IV declared hostilities and invaded Margraviate of Brandenburg; after two years of conflict, in 1373 Brandenburg became part of the Czech lands. This was when he gave the order to measure his new territory, its villages, people, and income. This was recorded in the Landbuch of Charles IV, which was finished in 1375. Many villages were mentioned for the first time in this book, so it can provide information on how old they are. He also gained a considerable portion of Silesian territory, partly by inheritance through his third wife, Anna von Schweidnitz, daughter of Henry II, Duke of Świdnica and Catherine of Hungary. In 1365, Charles visited Pope Urban V at Avignon and undertook to escort him to Rome; on the same occasion he was crowned King of Burgundy at Arles.