One of the key factors to improve swine production sustainability is the use of agro-industrial by-products in feeds, such as olive by-products. However, it is necessary to assess its effects on the overall production process, including the animal and the environment. With this aim, an experiment was conducted to determine the effects of including a partially defatted olive cake (PDOC) in pig diets on growth performance, faecal microbiota, carcass quality and gas emission from the slurry. Two finishing diets were formulated, a control (C) diet and a diet with PDOC included at 120 g/kg. Eighty finishing male pigs Duroc-Danbred × (Landrace × Large White) of 60.4 ± 7.00 kg BW were divided between these two treatments. During the finishing period (60 to 110 kg BW, 55 days) average daily gain, average daily feed intake and feed conversion ratio were recorded. Faecal samples from the rectum of 16 animals per treatment were incubated for bacteria enumeration. At the end of finishing period, backfat thickness and loin depth (LD) were measured. Animals were slaughtered to obtain carcass weight and carcass composition parameters, and subcutaneous fat was sampled to analyse the fatty acid (FA) profile. In addition greenhouse gas and ammonia emissions were measured during pig slurry storage using the methodology of dynamic flux chambers. An initial slurry characterisation and biochemical methane potential (B0) were also determined. No significant differences between treatments were found in performance, carcass quality and microbial counts with the exception of LD, which was lower in PDOC compared with C animals (45.5 v. 47.5 mm, SEM: 0.62; P = 0.020). The FA profile of the subcutaneous fat did not differ between treatments, but the monounsaturated FA (MUFA) concentration was higher and the polyunsaturated FA was lower in the animals fed PDOC (50.9 v. 48.3, SEM: 0.48, P < 0.001; 17.6 v. 19.3, SEM: 0.30, P < 0.001 in mg/100 g of Total FA, for PDOC and C animals, respectively). The initial pig slurry characterisation only showed differences in ADF concentration that was higher (P < 0.05) in the slurry from PDOC treatment. Regarding gas emission, slurries from both treatments emitted similar amounts of ammonia (NH3), carbon dioxide (CO2), methane (CH4) and nitrous oxide (N2O), as well as B0 values. The results obtained suggest that PDOC may be included in balanced pig diets at rates of up to 120 g/kg without negative effects on performance, carcass quality, gut microflora and slurry gas emission, while improving the MUFA concentration of subcutaneous fat.