Strong-flavor Baijiu, a type of Chinese liquor, is produced through anaerobic solid-state fermentation in a sealed mud pit. Ethyl caproate, the characteristic flavor compound of strong-flavor Baijiu, is influenced by caproic acid-producing bacteria in the pit mud. To better understand the formation of caproic acid, this study investigated the microbial composition and physicochemical parameters of pit mud from different layers (top, middle, and bottom) in Hubei and Sichuan provinces, China. The results revealed that Caproiciproducens plays a key role in caproic acid production by using lactic acid as a substrate, with its abundance increasing with the depth of the pit mud. A strain Caproiciproducens sp. R1, isolated from the pit mud, was shown to produce caproic acid from lactic acid within an initial pH range of 5.5–9.0 and lactic acid concentrations of 1 %–5 % (m/v). In addition, inoculation of strain R1 into Huangshui (a lactic acid-rich liquid from Baijiu production) resulted in 40.72 mM caproic acid production. This study demonstrates that Caproiciproducens plays a crucial role in caproic acid production from lactic acid during the fermentation process of strong-flavor Baijiu.