Abstract The environmental impacts of livestock production are attracting increasing attention, especially the emission of greenhouse gases (GHGs). Currently, pork is the most widely consumed meat product in the world, and its production is expected to grow in the next few decades. This paper deals with the production of carbon dioxide (CO2), methane (CH4) and nitrous oxide (N2O) by animals and by manure from pig buildings, with a focus on the influence of rearing techniques and nutrition. GHG emissions in piggeries originate from animals through CO2 exhalation and CH4 enteric fermentation, and from manure through the release of CO2, CH4 and N2O. The level of the CO2 exhalation (E-CO2, pig) depends on the physiological stage, the body weight (BW), the production level and the feed intake of the animals concerned. Enteric CH4 (E-CH4, pig) is principally related to dietary fibre intake and the fermentative capacity of the pig’s hindgut. Based on a review of the literature, the following equations are proposed in order to estimate E-CO2, pig (in kg day−1) and E-CH4,pig (in g day−1) for fattening pigs: E-CO2, pig = 0.136 × BW0.573; E-CH4,pig = 0.012 × dRes; with BW (in kg) and dRes for digestible residues (in g day−1). Numerous pathways are responsible for GHG production in manure. In addition, the microbial, physical and chemical properties of manure interact and modulate the level of emissions. Influencing factors for removal systems for both liquid and solid fractions of manure have been investigated. A large range of parameters showing an impact on the level of GHG production from pig houses has been reported. However, few of these can be considered unquestionably as GHG mitigation techniques because some strategies have shown contradictory effects depending on the gas, the circumstances and the study. Nevertheless, frequent manure removal seems to be an efficient means to reduce concurrently CO2-, CH4- and N2O-emissions from pig buildings for both slatted and bedded floor systems. Manure removal operations may be associated with specific storage conditions and efficient treatment in order to further reduce emissions. Several feeding strategies have been tested to decrease GHG emissions but they seem to be ineffective in reducing emissions both significantly and durably. In general, good management practices that enhance zootechnical performance will have beneficial consequences on GHG emission intensity. Taking into account the results described in the literature regarding CO2-, CH4- and N2O-production from animals and manure in pig houses, we estimate total GHG emissions to 448.3 kg CO2equiv. per slaughter pig produced or 4.87 kg CO2equiv. per kg carcass. The fattening period accounts for more than 70% of total emissions, while the gestation, lactation and weaning periods each contribute to about 10% of total emissions. Emissions of CO2, CH4 and N2O contribute to 81, 17 and 2% of total emissions from pig buildings, representing 3.87, 0.83 and 0.11 kg CO2equiv. per kg carcass, respectively.