Airlangga (990?-1049), also spelled Erlangga, was the best-known ruler of the kingdom of Kediri, in East Java, in what is now Indonesia. He reigned from 1019 to 1049. The Javanese regarded him as the Hindu god Vishnu in human form.
Airlangga’s mother was a Javanese princess. She was a descendant of King Sindok, a Hindu ruler of eastern Java. Airlangga’s father was a Balinese prince named Udayana. Airlangga married a daughter of Dharmavamsa, an East Javanese ruler. Dharmavamsa was killed in 1006 during an attack by soldiers from the Sumatran kingdom of Srivijaya. Dharmavamsa had named Airlangga as his successor. But for many years, Airlangga was unable to enforce his claim to the throne.
In 1019, Airlangga was consecrated king. The oldest inscription marking his reign dates from 1023. By 1030, he had restored the power of his kingdom to such an extent that he was recognized by Srivijaya.