Fencing, yes.
You can use something like chicken wire or bird netting, because it just needs to keep chickens out. (Neither of those works for building a predator-proof fence for a run, but either is fine for just containing chickens.)
How tall the fence needs to be will be determined by how...