Wittenberg developed into an important trade centre during the following several centuries, because of its central location. When the local branch of the Ascanians died out in 1422, control of Saxe-Wittenberg passed to the House of Wettin. This town became an important regional political and cultural centre at the end of the 15th Century, when Frederick III "the Wise", the Elector of Saxony from 1486 to 1525, made his residence in Wittenberg. Several parts of boundaries of the town were extended soon afterward. The second bridge over the Elbe River was built from 1487 through 1490 and the castle church (the "Schlosskirche" in German) was erected from 1496 through 1506. The Elector's palace was rebuilt at the same time.