A modular system for construction of a piggery with a plurality of pigsties with underlying manure channels is disclosed, which modular system comprises one or more wall elements (1), which are designed to be able to constitute both manure channel walls and pigsty partitions, and to be placeable either directly on a compressed bed of sand (4) or with a membrane placed between a compressed bed of sand and the one or more wall elements, a watertight channel membrane (7) for each manure channel for ensuring the imperviousness of the sides, bottom and ends thereof, a plurality of carrier profiles for being mounted between two wall elements perpendicular to these or between a wall element and another partition or wall in the piggery perpendicular to these, and one or more gratings (8) for being mounted between two carrier profiles. Furthermore, a piggery, which is at least partly constructed from such a modular system, is disclosed.