The site of the castle is said to have been occupied by a Roman fort built in the time of the emperor Julian. In the rith century the castle was held by a noble named Erembert, from whom it is said to have derived its name. In the 12th century it came into the possession of Archbishop Hillin (de Fallemagne) of Trier, who strengthened the defences in 1153. These were again extended by Archbishop Henry II. (de Fénétrange) in 1286, and by Archbishop John II. of Baden in 1481. In 1631 it was surrendered by the archbishop elector Philip Christopher von Soetern to the French, but was recovered by the Imperialists in 1637 and given to the archbishop elector of Cologne. It was restored to the elector of Trier in 1650, but was not strongly fortified until 1672. In 1688 the French bombarded it in vain, but in 1759 they took it and held it till 1762. It was again blockaded in 1795, 1796 and 1797, in vain; but in 1799 they starved it into surrender, and at the peace of Lunéville in 1801 blew it up before evacuating it. At the second peace of Paris the French paid 15,000,000 francs to the Prussian government for its restoration, and from 1816 to 1826 the fortress was reconstructed by General E. L. Aster (1778-1855).