Harshavarman II was a Khmer king who ruled from Koh Ker in what is now Cambodia. He succeeded his father in 941, but conflict marked his brief reign. His uncle Rajendravarman II seized power and moved the capital back to Yashodharapura. Harshavarman II died in 944.