 Before 1079 he also used the titles "King of Spain" ("rex Hispaniae") or "King of all Spain" ("rex totius Hispaniae").The first use of the imperial title by Alfonso VI comes from a diploma of 1075, where he is called simply "imperator", although he subscribed the charter with the title "rex" (king).The earliest use of the imperial title by Alfonso VI that comes down to us is found in a royal charter issued 17 October 1077, but preserved only as a copy.