A grietenij is a municipality. The term is mainly used in Friesland. In 1851, it was changed to gemeente, the common Dutch word for municipality. In parts of Groningen, the term grietenij was also used to refer to the local courts.
A grietenij was led by the grietman, whose function was similar to that of a mayor.