Mahathammaracha IV (Thai: มหาธรรมราชาที่ ๔), born as Ban Mueang (Thai: บานเมือง), was the last king of the Sukhothai Kingdom.
In 1419, after the death of Sai Lue Thai, his sons Phaya Ram and Phaya Ban Meuang 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 Mahathammaracha 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.