Anwil is a municipality in the district of Sissach in the canton of Basel-Country in Switzerland.
Anwil is first mentioned in 1276.
Anwil has an area, , of . Of this area, or 63.6% is used for agricultural purposes, while or 27.8% is forested. Of the rest of the land, or 8.1% is settled (buildings or roads), or 0.8% is either rivers or lakes and or 0.5% is unproductive land.
Of the built up area, housing and buildings made up 5.3% and transportation infrastructure made up 2.5%. Out of the forested land, 26.5% of the total land area is heavily forested and 1.3% is covered with orchards or small clusters of trees. Of the agricultural land, 42.4% is used for growing crops and 17.7% is pastures, while 3.5% is used for orchards or vine crops. All the water in the municipality is in lakes.
The municipality is located in the Sissach district and is the easternmost municipality in the half canton. It consists of the haufendorf village (an irregular, unplanned and quite closely packed village, built around a central square) of Anwil, located in the Jura Mountains between the Ergolz valleys and the Kienberger Eital.
The blazon of the municipal coat of arms is Per pale Sable and Argent, in Chief Or.
Anwil has a population () of . , 8.2% of the population are resident foreign nationals. Over the last 10 years (1997–2007) the population has changed at a rate of 29.1%.
Most of the population () speaks German (477 or 96.4%), with Portuguese being second most common (5 or 1.0%) and Italian language being third (4 or 0.8%). There are 2 people who speak French and people who speak Romansh.
the gender distribution of the population was 49.7% male and 50.3% female. The population was made up of 524 Swiss citizens (93.1% of the population), and 39 non-Swiss residents (6.9%) Of the population in the municipality 217 or about 43.8% were born in Anwil and lived there in 2000. There were 142 or 28.7% who were born in the same canton, while 85 or 17.2% were born somewhere else in Switzerland, and 34 or 6.9% were born outside of Switzerland.