Dietary, environmental, and social stresses induced by weaning transition in pig production are associated with alterations of gut microbiota, diarrhea, and enteric infections. With the boom of -omic technologies, numerous studies have investigated the dynamics of fecal bacterial communities of piglets throughout weaning but much less research has been focused on the composition and functional properties of microbial communities inhabiting other gastrointestinal segments. The objective of the present study was to bring additional information about the piglet bacterial and archaeal microbiota throughout the entire digestive tract, both at the structural level by using quantitative PCR and high-throughput sequencing, and on functionality by measurement of short-chain fatty acids and predictions using Tax4Fun tool. Our results highlighted strong structural and functional differences between microbial communities inhabiting the fore and the lower gut as well as a quantitatively important archaeal community in the hindgut. The presence of opportunistic pathogens was also noticed throughout the entire digestive tract and could trigger infection emergence. Understanding the role of the intestinal piglet microbiota at weaning could provide further information about the etiology of post-weaning infections and lead to the development of effective preventive solutions.