Braga is known as the place where the Visigoths renounced the Arian and Priscillianist heresies against Christ's divinity and against sensual pleasures. It was taken by the Moors in 716 and recaptured by Ferdinand I, king of Castile and Leon, in 1040. From 1093 to 1147 it was the seat of the Portuguese court.