Complex sentence: An animal pound was a place where stray livestock such as pigs are "impounded" in a dedicated enclosure until claimed by their owners or sold to cover the costs of impounding.
Split into simpler sentences: An animal pound was a place where stray livestock was "impounded". Animals as pigs were kept in a dedicated enclosure, until claimed by their owners, or sold to cover the costs of impounding.