Once upon a time, Kediri was a large kingdom called the Medang Kingdom. The kingdom of Medang was led by a king named Prabu Airlangga.