King Charles IV
Oh, i hope i have this information right, but Charles IV, Holy Roman Emperor, helped Prague to flourish while he ruled. Among other things, he is responsible for Charles Bridge and St. Vitus Cathedral (which i believe is the one at the castle).