Stable for keeping farm animals, in particular pigs, wherein the stable has at least three areas (2, 3, 4), wherein - a first area is set up as a lying and/or sleeping area for livestock, - a second area is arranged as an activity area for farm animals, and - a third area is arranged as an excretion area for farm animals, wherein the second area is arranged between the first and the third area, wherein the first, second and third area are arranged along a stable axis (x), wherein a feeding area for farm animals is formed between the first and the second area, wherein the feeding area comprises at least one feed trough which can be filled with feed, wherein feed removal areas are arranged along a length of the feed trough, from which feed can be removed by farm animals, wherein the feed trough is arranged between the first and the second area in such a way that the length of the feed trough is oriented substantially orthogonal to the barn axis (x), characterized in that the stall comprises at least two partition walls, each of which is transferable from a first position to a second position wherein the at least two partition walls in their respective first position are oriented substantially parallel to the stable axis (x) and delimit the second area in such a way that farm animals can move back and forth between the first and second areas and between the second and third areas, wherein the at least two partition walls are oriented in their respective second position substantially orthogonal to the barn axis (x) and delimit the second area such that farm animals are kept in the first and/or third area, wherein the first area is delimited by sides, a first side of the first area being adjacent to the second area, the remaining sides of the first area each being bounded by a first boundary element, the first boundary element being formed so as to be impassable for farm animals, the feeding trough being arranged substantially along the boundary between the first and second area, the feeding trough being formed shorter than the first side. - a first area is set up as a lying and/or sleeping area for livestock, - a second area is arranged as an activity area for farm animals, and - a third area is arranged as an excretion area for farm animals, wherein the second area is arranged between the first and the third area, wherein the first, second and third area are arranged along a stable axis (x), wherein a feeding area for farm animals is formed between the first and the second area, wherein the feeding area comprises at least one feed trough which can be filled with feed, wherein feed removal areas are arranged along a length of the feed trough, from which feed can be removed by farm animals, wherein the feed trough is arranged between the first and the second area in such a way that the length of the feed trough is oriented substantially orthogonal to the barn axis (x), characterized in that the stall comprises at least two partition walls, each of which is transferable from a first position to a second position wherein the at least two partition walls in their respective first position are oriented substantially parallel to the stable axis (x) and delimit the second area in such a way that farm animals can move back and forth between the first and second areas and between the second and third areas, wherein the at least two partition walls are oriented in their respective second position substantially orthogonal to the barn axis (x) and delimit the second area such that farm animals are kept in the first and/or third area, wherein the first area is delimited by sides, a first side of the first area being adjacent to the second area, the remaining sides of the first area each being bounded by a first boundary element, the first boundary element being formed so as to be impassable for farm animals, the feeding trough being arranged substantially along the boundary between the first and second area, the feeding trough being formed shorter than the first side.