An ombudsman or public advocate is an official, usually appointed by the government or by parliament, but with a significant degree of independence, who is charged with representing the interests of the public by investigating and addressing complaints of maladministration or a violation of rights. In some countries an Inspector General, Citizen Advocate or other official may have duties similar to those of a national ombudsman, and may also be appointed by a legislature. Below the national level an ombudsman may be appointed by a state, local or municipal government. Unofficial ombudsmen may be appointed by, or even work for, a corporation such as a utility supplier, newspaper, NGO, or professional regulatory body.
The typical duties of an ombudsman are to investigate complaints and attempt to resolve them, usually through recommendations (binding or not) or mediation. Ombudsmen sometimes also aim to identify systematic issues leading to poor service or breaches of people's rights. At the national level, most ombudsmen have a wide mandate to deal with the entire public sector, and sometimes also elements of the private sector (for example, contracted service providers). In some cases, there is a more restricted mandate, for example with particular sectors of society. More recent developments have included the creation of specialized Children's Ombudsman and Information Commissioner agencies.
In some jurisdictions an ombudsman charged with handling concerns about national government is more formally referred to as the "Parliamentary Commissioner" (e.g. the United Kingdom Parliamentary Commissioner for Administration, and the Western Australian state Ombudsman). In many countries where the ombudsman's responsibility includes protecting human rights, the ombudsman is recognized as the national human rights institution. The post of ombudsman had by the end of the 20th century been instituted by most governments and by some intergovernmental organizations such as the European Union.
A prototype of an ombudsman may have flourished in China during the Qin Dynasty (221 BC), and in Korea during the Joseon Dynasty. The position of secret royal inspector, or Amhaeng-eosa (암행어사, 暗行御史) was unique to the Joseon Dynasty, where an undercover official directly appointed by the king was sent to local provinces to monitor government officials and look after the populace while travelling incognito. The Roman Tribune had some similar roles, with power to veto acts that infringed upon the Plebeians. Another precursor to the ombudsman was the Turkish Diwan-al-Mazalim which appears to go back to the second caliph, Umar (634–644) and the concept of Qadi al-Qudat. They were also attested in Siam, India, the Liao dynasty (Khitan Empire), Japan, and China.