The area surrounding a barn, a building on a farm that houses animals like cows and pigs .
The hen and her chicks were pecking at the ground in the barnyard.
This compound noun is made of 'barn' and 'yard'.