The standard spelling for the adjective referring to or involving the Middle Ages is medieval. Avoid the uncommon variant mediaeval.
Prefer the three-syllable pronunciation med-ee-val (using IPA, /ˌmɛd(i)ˈv(ə)l/) to any four-syllable pronunciation.