A bailiff is a manager, overseer or custodian – a legal officer to whom some degree of authority or jurisdiction is given. There are different kinds, and their offices and scope of duties vary.
Another official sometimes referred to as a bailiff was the Vogt. In the Holy Roman Empire a similar function was performed by the Amtmann. They are mostly known for being the officer that keeps the order in a court of law and who also administers oaths to people who participate in court proceedings.