Canton of Solothurn
The municipality is located in the Dorneck district, in the upper Leimen valley. The municipality is located in an exclave of the Canton of Solothurn, bordered by Basel-Country and Alsace.