Patih or Pepatih is a regent title equivalent to vicegerent which was traditionally used among Austronesian polities of insular Southeast Asia, in particular those of Java and the Malay world. In the first place it denoted the chief minister of a kingdom or (in the case of Java) a traditional regency. Lesser ministers could also be known by the title. In some cases the headmen of local communities could be termed Patih, for example on 16th-century Java and in Banjarmasin in southeastern Kalimantan.
In his capacity of chief minister in a realm, the Patih was the right hand and representative of the ruler. The commands of the ruler were transferred to the regional or local chiefs via the Patih. In the Javanese kingdoms the Patih had his own palace, the Pepatihan, and carried a particular name; in Yogyakarta his name as regent was Danurejo, in Surakarta (Solo) it was Joyonegoro.