Maha Thammaracha IV (Thai: ąø”ąø«ąø²ąøąø£ąø£ąø”ąø£ąø²ąøąø²ąøąøµą¹ ą¹, pronounced [mÄ.hĒĖ tʰÄm.mÄ.rÄĖ.tĶ”ÉŹ°ÄĖ tŹ°Ć®Ė sƬĖ]), born as Borommapan (Thai: ąøąø£ąø”ąøąø²ąø„, pronounced [bÉĢĖ.rÅm.mÄ.pÄĖn]), was the last king of the Sukhothai Kingdom.
In 1419, after the death of Sai Lue Thai, his sons Phaya Ram and Phaya Ban Mueang fought for the throne. Intharacha of Ayutthaya Kingdom intervened and further divided the kingdom between the two. Ban Mueang was installed as a vassal king, owing allegiance to Ayutthaya. His residence was in Phitsanulok, though the kingdom was still referred to as "Sukhothai". In 1430, he moved his residence back to the old capital. When Maha Thammaracha IV died in 1438, King Borommaracha II of Ayutthaya installed his son Ramesuan (the future king Borommatrailokkanat of Ayutthaya) as viceroy of Sukhothai, thus marking the end of Sukhothai as a separate kingdom.