Cowshed (1) with a shed floor (3) under which a manure pit (2) is provided, which consists of a pit (5) in which manure pit compartments (10) are formed parallel to one another, wherein each basement compartment (10) extends in its longitudinal direction (VV) and is laterally delimited by parallel, lateral retaining walls (11), wherein one or several tubular ducts (20) are integrated in the shed floor (3) extending in a direction (UU) which is not parallel to the longitudinal direction (VV) of the manure pit compartments (10) and wherein openings (21) are provided via which gases which are present in the manure pit compartments (10) can flow into the tubular ducts (20) so as to be discharged.