The Justinian dynasty was founded by Justin I, who though illiterate, rose through the ranks of the military to become Emperor in 518.