In the late middle ages and early modern age, the Scandinavian languages went through great changes, as they were influenced in particular by Low German. Written Danish language mostly found its modern form in the 17th century, based on the vernacular of the educated classes of Copenhagen. At the time, Copenhagen was the capital of Denmark-Norway, and Danish was used as an official written language in Norway at the time of the dissolution of the Dano-Norwegian union in 1814. In Norway it was generally referred to as Norwegian, particularly after the dissolution of the Dano-Norwegian union.