 The oldest known mention of Leśnica comes from a 1217 document of Duke Casimir I of Opole.Its name is derived from the Polish word "las" ("forest").The town was part of the Duchy of Opole of fragmented Poland, and remained ruled by the Piast dynasty until 1532.