Rama I who was himself of Mon, Thai and Chinese descent restored most of the social and political system of the Ayutthaya kingdom, promulgating new law codes, reinstating court ceremonies and imposing discipline on the Buddhist monkhood. His government was carried out by six great ministries (Krom) headed by royal princes. Four of these administered particular territories: the Kalahom the south; the Mahatthai the north and east; the Phrakhlang the area immediately south of the capital; and the Krom Mueang, the area around Bangkok. The other two were the ministry of lands (Krom Na) and the ministry of the royal court (Krom Wang). The army was controlled by the King's deputy and brother, the Uparat.