Via the University of Maryland's agricultural law blog:
"There is an old adage on good fences and neighbors. This is especially true in agriculture. A good fence can keep livestock in the pasture, can keep livestock off your property, or can act as a barrier to potentially detour trespassers/unwanted visitors. But what exactly is the fencing laws in Maryland? Like many states in the East, Maryland does not have a specific state statute defining what a fence is and the duties for two neighboring landowners in erecting a fence. Instead, Maryland’s fencing law is based on county ordinances (where available) and previous court decisions."
Click here for more info, including how to get a copy of a new "publication, Understanding Agricultural Liability: Maryland Fencing Law (2014, EB-419), provides a general overview of previous court decisions related to fencing in agriculture and examples of county ordinances that impact fencing duties. For example, counties potentially have ordinances that impact the maintenance and construction of fences, specify how costs should be split between neighboring landowners, and liens to force non-paying landowners to pay their share of the costs."