hi! There's lots of room for more information, but FYI, you can get started on this earlier post
https://www.reddit.com/r/AskHistorians/comments/1ktuwt/would_medievalancient_moats_the_ditches_with/