A barnyard or farmyard is an enclosed or open yard adjoining a barn,[1] and, typically, related farm buildings, including a farmhouse. Enclosed barnyards are usually formed by a combination of fences and farm structures.