For local government purposes, Tallinn is subdivided into 8 administrative districts (, singular ''linnaosa''). The district governments are city institutions that fulfill, in the territory of their district, the functions assigned to them by Tallinn legislation and statutes.