The pig is a major species for livestock production and is also extensively used as the preferred model species for analyses of a wide range of human physiological functions and diseases1. The importance of the gut microbiota in complementing the physiology and genome of the host is now well recognized2. Knowledge of the functional interplay between the gut microbiota and host physiology in humans has been advanced by the human gut reference catalogue3,4. Thus, establishment of a comprehensive pig gut microbiome gene reference catalogue constitutes a logical continuation of the recently published pig genome5. By deep metagenome sequencing of faecal DNA from 287 pigs, we identified 7.7 million non-redundant genes representing 719 metagenomic species. Of the functional pathways found in the human catalogue, 96% are present in the pig catalogue, supporting the potential use of pigs for biomedical research. We show that sex, age and host genetics are likely to influence the pig gut microbiome. Analysis of the prevalence of antibiotic resistance genes demonstrated the effect of eliminating antibiotics from animal diets and thereby reducing the risk of spreading antibiotic resistance associated with farming systems.