missionaries into his kingdom. Ansgar recommended the issue to the care of God, and the lot was favorable. Ansgar was consecrated as a bishop in November 831, with the approval of Gregory IV. Before traveling north once again, Ansgar traveled to Rome to receive the pallium directly from the pope's hands, and was formally named legate for the northern lands. Ebbo, Archbishop of Reims had previously received a similar commission, but would be deposed twice before his death in 851, and never actually traveled so far north, so the jurisdiction was divided by agreement, with Ebbo retaining Sweden for himself. For a time Ansgar devoted himself to the needs of his own diocese, which was still a missionary territory and had few churches. He founded a monastery and a school in Hamburg. Although intended to serve the Danish mission further north, it accomplished little. After Louis the Pious died in 840, his empire was divided and Ansgar lost the abbey of Turholt, which Louis had given to endow Ansgar's work. Then in 845, the Danes unexpectedly raided Hamburg, destroying all the church's treasures and books. Ansgar now had neither see nor revenue, and many helpers deserted him. The new king, Louis' third son, Louis the German, did not re-endow Turholt to Ansgar, but in 847 he named the missionary to the vacant diocese of Bremen, where Ansgar moved in 848. However, since Bremen had been suffragan to the Bishop of Cologne, combining the sees of Bremen and Hamburg presented canonical difficulties. After prolonged negotiations, Pope Nicholas I would approve the union of the two dioceses in 864. Through this political turmoil, Ansgar continued his northern mission. The Danish civil war compelled him to establish good relations with two kings, Horik the Elder and his son, Horik II. Both assisted him until his death; Ansgar was able to secure permission to build a church in Sleswick north of Hamburg and recognition of Christianity as a tolerated religion. Ansgar did not forget the Swedish mission, and spent two years there in person (848–850), averting a threatened pagan reaction. In 854, Ansgar returned to Sweden when king Olof ruled in Birka. According to Rimbert, he was well disposed to Christianity. On a Viking raid to Apuole (current village in Lithuania) in Courland, the Swedes plundered the Curonians. Death and legacy Ansgar was buried in Bremen in 865. His successor as archbishop, Rimbert, wrote