One of Charlemagne's most important achievements was:

A. stopping the spread of the black death in Europe
B. giving peasants more rights under the feudal system
C. reducing power in the catholic church
D. uniting much of Europe into a single empire