encourage their conversion to Catholicism. A group of boyars, who were alarmed by the despotic acts of Vladimir Igorevich, asked Andrew to restore Daniel Romanovich as ruler of Halych in 1210 or 1211. Andrew and his alliesLeszek I of Poland and at least five Rus' princessent their armies to Halych and restored Daniel Romanovich. Local boyars expelled Daniel Romanovich's mother in 1212. She persuaded Andrew to personally lead his army to Halych. He captured Volodislav Kormilchich, the most influential boyar, and took him to Hungary. After Andrew withdrew from Halych, the boyars again offered the throne to Mstislav Mstislavich, who expelled Daniel Romanovich and his mother from the principality. Andrew departed for a new campaign against Halych in summer 1213. During his absence, Hungarian lords who were aggrieved at Queen Gertrude's favoritism towards her German entourage captured and murdered her and many of her courtiers in the Pilis Hills on 28 September. When he heard of her murder, Andrew returned to Hungary and ordered the execution of the murderer, Peter, son of Töre. However, Peter's accomplices, including Palatine Bánk Bár-Kalán, did not receive severe punishments. A group of Hungarian lords, whom Andrew called "perverts" in one of his letters, was plotting to dethrone Andrew and crown his eldest son, the eight-year-old Béla, but they failed to dethrone him and could only force Andrew to consent to Béla's coronation in 1214. Andrew and Leszek of Poland signed a treaty of alliance, which obliged Andrew's second son, Coloman, to marry Leszek of Poland's daughter, Salomea. Andrew and Leszek jointly invaded Halych in 1214, and Coloman was made prince. He agreed to cede Przemyśl to Leszek of Poland. The following year, Andrew returned to Halych and captured Przemyśl. Leszek of Poland soon reconciled with Mstislav Mstislavich; they jointly invaded Halych and forced Coloman to flee to Hungary. A new officer of state, the treasurer, was responsible for the administration of the royal chamber from around 1214 onwards. However, royal revenues had significantly diminished. Upon the advice of the treasurer, Denis, son of Ampud, Andrew imposed new taxes and farmed out royal income from minting, salt trade and custom duties. The yearly exchange of coins also produced more revenue for the royal chamber. However, these measures provoked discontent in Hungary. Andrew signed a new treaty of alliance with Leszek of Poland in the summer of 1216. Leszek and Andrew's son, Coloman, invaded Halych and