Langon is a sub-prefecture of the Gironde department. It is also the capital of the "arrondissement" of Langon and the administrative centre () of the "canton" of Le Sud-Gironde with 39,445 inhabitants .