Diegten is a municipality in the district of Waldenburg in the canton of Basel-Country in Switzerland.
Diegten is first mentioned in 1152 as Dietingoven. In 1213 it was mentioned as Dietikon, in 1342 it was mentioned as Dietken and in 1671 it was Dieckten.
Diegten has an area, , of . Of this area, or 49.5% is used for agricultural purposes, while or 39.5% is forested. Of the rest of the land, or 11.1% is settled (buildings or roads).
Of the built up area, housing and buildings made up 4.6% and transportation infrastructure made up 5.5%. Out of the forested land, 37.6% of the total land area is heavily forested and 2.0% is covered with orchards or small clusters of trees. Of the agricultural land, 25.5% is used for growing crops and 19.1% is pastures, while 4.9% is used for orchards or vine crops.
The municipality is located in the Waldenburg district, in the Diegter valley. It consists of a long string of five linear villages; Ober-Diegten, Mühle-Diegten, Mittel-Diegten, Schloss-Diegten and Nieder-Diegten.
The blazon of the municipal coat of arms is Per pale, Or a Lion rampant Sable, and Bendy of six Sable and Argent.
Diegten has a population () of . , 7.6% of the population are resident foreign nationals. Over the last 10 years (1997–2007) the population has changed at a rate of 13.7%.
Most of the population () speaks German (1,338 or 96.3%), with French being second most common (9 or 0.6%) and French being third (9 or 0.6%).
the gender distribution of the population was 49.6% male and 50.4% female. The population was made up of 1,425 Swiss citizens (90.4% of the population), and 152 non-Swiss residents (9.6%) Of the population in the municipality 418 or about 30.1% were born in Diegten and lived there in 2000. There were 451 or 32.4% who were born in the same canton, while 378 or 27.2% were born somewhere else in Switzerland, and 108 or 7.8% were born outside of Switzerland.
In there were 11 live births to Swiss citizens and 5 births to non-Swiss citizens, and in same time span there were 10 deaths of Swiss citizens and 1 non-Swiss citizen death.